rcs91900@zach.fit.edu ( Charles Stockman /ADVISOR-Clutterham) (01/31/91)
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 ??????? Thank a lot --> Charles Stockan
bin@primate.wisc.edu (Brain in Neutral) (02/01/91)
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