Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!rex!samsung!usc!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: just to let you know... Message-ID: <42653@apple.Apple.COM> Date: 5 Jul 90 07:31:45 GMT References: <102102@tiger.oxy.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 28 sonenbli@oxy.edu (Andrew D. Sonenblick) writes: >I simply had an array of booleans like this: Boolean monitor[3]; >simple enough. However, in my code I hade this: >Boolean someBoolean, > anotherBoolean; > monitor[3]; >AHHHHG! Note that there is a semi-colon after anotherBoolean!! (it's >embarrassing to think I was hunting for days to find the root of my problem) >Think C (4.00) compiled this with no complaints (don't ask me what it >thought monitor[3]; means, I don't know...) so it appears to be a bug. Probably it thinks that monitor is an array of ints, since untyped variables, parameters, and functions default to int... -- ----------------------------------------------------------------------------- | Glenn L. Austin | "Turn too soon, run out of room, | | Auto Racing Enthusiast and | Turn too late, much better fate" | | Communications Toolbox Hacker | - Jim Russell Racing School Instructors | | Apple Computer, Inc. | "Drive slower, race faster" - D. Waltrip | | Internet: austing@apple.com |-------------------------------------------| | AppleLink: AUSTIN.GLENN | All opinions stated above are mine -- | | Bellnet: (408) 974-0876 | who else would want them? | -----------------------------------------------------------------------------