Path: utzoo!attcan!uunet!decwrl!apple!radius!lemke From: lemke@radius.com (Steve Lemke) Newsgroups: comp.sys.mac.hypercard Subject: Re: global variables in code resources Keywords: global variables, code resources, XCMD's, XFCN's Message-ID: <1297@radius.com> Date: 26 Jul 90 17:42:35 GMT References: <12642@june.cs.washington.edu> <1296@radius.com> Lines: 31 I received the following message, and thought I'd redeem myself publicly... }In article <1296@radius.com> lemke@radius.com (Steve Lemke) writes: }> Sure. Use THINK Pascal 3.0. I quote from the manual (page 157): } }Explain to me please why one can't do this in MPW just as well? The MPW }Pascal compiler most certainly allows one to nest procedures. } } Tom Dowdy Internet: dowdy@apple.COM } Apple Computer MS:81EQ UUCP: {sun,voder,amdahl,decwrl}!apple!dowdy } 20525 Mariani Ave AppleLink: DOWDY1 } Cupertino, CA 95014 Oops, geez, I was spacing last night. That didn't even occur to me. I just got THINK Pascal 3.0, and thought I'd look up "global" in the index. I found the section, as it pertained to code resources, and merely spewed forth what I read there. My original thinking was that since THINK Pascal supports globals in DAs (which, correct me if I'm wrong, MPW does not), then it probably would allow the same in a code resource. Well, the section I typed in indicated that it didn't support NORMAL globals, but that you could nest the procedures. I didn't even think about the fact that it would probably also work in just about any other Pascal or C. Sorry. -- ----- Steve Lemke, Engineering Quality Assurance, Radius Inc., San Jose ----- ----- Reply to: lemke@radius.com (Note: NEW domain-style address!!) -----