Path: utzoo!utgpu!news-server.csri.toronto.edu!qucdn!spraggej Organization: Queen's University at Kingston Date: Tuesday, 5 Feb 1991 17:33:31 EST From: John G. Spragge Message-ID: <91036.173331SPRAGGEJ@QUCDN.QueensU.CA> Newsgroups: comp.lang.pascal Subject: Re: Goto's are okay References: <2427@bnlux0.bnl.gov> <1991Jan27.074528.23487@tygra.UUCP> <1991Jan27.185044.19856@uwasa.fi> <1991Jan28.102509.5587@tygra.UUCP> <1991Feb3.231920.8462@syacus.acus.oz.au> <654@sun4dts.dts.ine.philips.nl> In article <654@sun4dts.dts.ine.philips.nl>, derek@sun4dts.dts.ine.philips.nl (derek) says: >In a program I'm writing at the moment (in good old 5.0 - waiting for an >update to 6.0), I'm using globals to reduce the stack overhead in a >recursive procedure- sounds dangerous, but I'm being careful - these are >mainly work records for pushing things onto the heap, which is cleared >before each recursion. In a similar situation, I used a typed local constant: this could be used as a buffer, persisted, did not cause additional stack memory to be allocated, and could only be accessed in the single procedure it was attached to. It was a bit kludgey, I admit, but given the stack linitations in Turbo, I think it qualified as a necessary bit of hacking. disclaimer: Queen's University merely supplies me with computer services, and they are responsible for neither my opinions or my ignorance. John G. Spragge