🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2008

Re: how to write new?

#2008
From: Ben Coleman
Date: Thu, 25 Apr 1991 04:09
23 lines
1360 bytes
EE>The answer is actually quite simple, it's only the documentation that's
EE>bad.  EVERY Modula-2 compiler supports NEW and DISPOSE (if you find one
EE>that doesn't, you've been cheated) in the following way.

Isn't "you've been cheated" a bit strong?  The only reference to NEW and 
DISPOSE that I can find in PIM2(3rd edition) appears on page 76:

    "In some implementations, the statement Allocate(p0, SIZE(Node)) can be
     abbreviated as NEW(p0)."

There doesn't seem to be any implication that all implementations *should* 
support it, just a note that some do.

Anyone know if NEW and DISPOSE appear in the ISO standard?

Ben
 * SM 1.00 ----- * Email To: 70176.1334@compuserve.com



--  
uucp: uunet!m2xenix!puddle!277!11.0!Ben.Coleman
Internet: Ben.Coleman@p0.f11.n277.z1.fidonet.org
Technical Details
Message-ID: <893.281727FD@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!rice!uw-beaver!zephyr.ens.tek.com!tektronix!percy!m2xenix!puddle!p0.f11.n277.z1.fidonet.org!Ben.Coleman

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!rice!uw-beaver!zephyr.ens.tek.com!tektronix!percy!m2xenix!puddle!p0.f11.n277.z1.fidonet.org!Ben.Coleman
From: Ben.Coleman@p0.f11.n277.z1.fidonet.org (Ben Coleman)
Newsgroups: comp.lang.modula2
Subject: Re: how to write new?
Message-ID: <893.281727FD@puddle.fidonet.org>
Date: 25 Apr 91 04:09:00 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 1:277/11.0 - The Full Spectrum, Morgantown WV
Lines: 23