Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!bin From: bin@primate.wisc.edu (Brain in Neutral) Newsgroups: comp.sys.mac.programmer Subject: Re: Global Variables Message-ID: <3874@uakari.primate.wisc.edu> Date: 1 Feb 91 06:09:07 GMT References: <1985@winnie.fit.edu> Sender: bin@primate.wisc.edu Reply-To: bin@primate.wisc.edu Lines: 17 From article <1985@winnie.fit.edu>, by rcs91900@zach.fit.edu ( Charles Stockman /ADVISOR-Clutterham): > I have been programming the macinstosh for three weeks now and have > benn using Macinstosh Primer Volume 1 and have seen a lot of global > variables in their programs. > > My question is : Does any program the mac interface without using global > variables ??????? Yes, and the less you use them, the better. Some of them don't exist under A/UX, for example, and some Apple documentation claims that low memory globals will some day go bye-bye. That may account for some of the trend towards providing functions that return the values formerly obtained by accessing globals (GetGrayRgn() instead of GrayRgn, for example). -- Paul DuBois dubois@primate.wisc.edu