Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!uts!unierik From: unierik@uts.uni-c.dk (Erik Bertelsen) Newsgroups: comp.sys.mac.programmer Subject: Re: Variable length arrays in Pascal--can it be done? Message-ID: Date: 22 Apr 91 10:32:07 GMT References: <1521@babcock.cerc.wvu.wvnet.edu> <13102@goofy.Apple.COM> Sender: unierik@uts.uni-c.dk (Erik Bertelsen) Organization: UNI-C Lines: 18 In-Reply-To: mitch@Apple.COM's message of 17 Apr 91 06: 23:41 GMT > In MPW Pascal you use the directive: > {$R-} to turn runtime range checking for sets, arrays and strings off. > {$R+} to turn it back on. You can even do this: {$push}{$R-} { some code that is performed without runtime range checks } {$pop} { resume previous setting } This will allow you preserve the global setting of range check (and other options) and have the global setting be one value while debugging and another in final builds. regards Erik Bertelsen UNI-C, The Danish Computing Centre for Research and Education.