Path: utzoo!attcan!uunet!tank!ncar!boulder!stan!garya From: garya@stan.com (Gary Aitken) Newsgroups: comp.windows.x Subject: Re: Xtk "unsigned int" typedefs considered harmful Message-ID: <257@stan.com> Date: 14 Sep 88 19:58:44 GMT References: <6289@batcomputer.tn.cornell.edu> Distribution: comp Organization: Solbourne Computer Inc., Longmont, Co. Lines: 9 >> Isn't it worth limiting Dimensions to two billion or so, by specifying them >> as "int" instead of "unsigned int"? I would presume that "Cardinal", etc., >> are typedef'd because the programmer is not supposed to need to know >> what they really are, when in fact that ignorance leads to big trouble. I agree. We ran into the same problem when implementing a C++ set of widgets. The widget sizing procedures can check for valid sizes to screen out errors due to negative numbers.