Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!encore!encore.UUCP From: soper@encore.UUCP (Pete Soper,Cary NC,9194813730,9193624635) Newsgroups: comp.lang.modula2 Subject: Re: How to write NEW? Message-ID: <14627@encore.Encore.COM> Date: 22 Apr 91 15:08:29 GMT References: <1991Apr22.155056.10010@cc.newcastle.edu.au> Sender: news@Encore.COM Lines: 16 Nntp-Posting-Host: maxzilla.encore.com From article <1991Apr22.155056.10010@cc.newcastle.edu.au>, by eepjm@cc.newcastle.edu.au: > > The answer is actually quite simple, it's only the documentation that's > bad. EVERY Modula-2 compiler supports NEW and DISPOSE (if you find one > that doesn't, you've been cheated) in the following way. When NEW(Var) There are lots of cheated folks out there in that case. Compilers implementing the language described by edition three of the Wirth book do not contain NEW and DISPOSE. This is another case where Wirth fiddled with the language with little concern for the impact of the fiddling. While Wirth is of course free to do as he likes I wish when he went from the second to the third edition he had changed the name of the language to really cut down on the confusion :-) ----------------------------------------------------------------------- Pete Soper (soper@encore.com) +1 919 481 3730 Encore Computer Corp, 901 Kildaire Farm Rd, bldg D, Cary, NC 27511 USA