Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!AppleLink.Apple.Com!Greg From: Greg@AppleLink.Apple.Com (Greggy) Newsgroups: comp.sys.mac.programmer Subject: Re: Bug in MPW Pascal 2.0.2 ??? Message-ID: <2802@internal.Apple.COM> Date: 13 Jul 89 01:46:55 GMT Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 25 References:<1270@draken.nada.kth.se> <445d59a8.1285f@maize.engin.umich.edu> In article <445d59a8.1285f@maize.engin.umich.edu> mystone@caen.engin.umich.edu (Dean Yu) writes: > [ ... discussions by various people about subranges fitting into > different memory sizes... VAR u : 0..65535 ] > Human logic says that the compiler should recognize that the range > for u is larger than MaxInt, and should therefore make u a long > integer, but the compiler might be thinking that it can store 65535 > in one word and made u an integer... Actually, human logic (and the Pascal language) says that if I declared a range of 0..65535, then by gosh the only numbers that had better come in and out of those variables better not go beyond the range I set! Period. I don't care how the compiler implements it. (Well, that's not entirely true. I DO have to live with the Mac ROM, and it kind of cares... a little... %-b ) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Greg Marriott + AppleLink: Greg + + Just Some Guy + + + "My phone is always busy" + Internet: Greg@AppleLink.Apple.Com + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Apple Computer, Inc. + + 20525 Mariani Ave, MS-46z, Cupertino, CA 95014 + + (408)974-busy + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++