Article View: comp.lang.modula2
Article #454Re: MetCom (IT'S A WARNING!!!!)
From: JAE
Date: Tue, 12 Dec 1989 03:28
Date: Tue, 12 Dec 1989 03:28
30 lines
1551 bytes
1551 bytes
Hi all! I just wanted, no, I MUST add my 2 cents worth to this one.
Bob Campbell wrote:
> NEW is ALLOCATE(x,SIZE(x))
> DISPOSE is DEALLOCATE(x,SIZE(x))
THIS IS WRONG!!!!
Instead you have to write
ALLOCATE(x,SIZE(x^));
DEALLOCATE(x,SIZE(x^));
'^' is the caret (dereferencing 'operator').
I once forgot this little thing, and the error was REALLY hard to find
(I had to do without a debugger, though).
I'm quite sure that Bob just forgot this, because it wont run properly
if you do forget it.
Well, one final note on his vi and MPW scripts(?): I don't think
they are correct, either, 'cause I didn't notice a caret there!
Unfortunately, I have neither access to vi nor to MPW, sigh. So can
some kind soul out there (or you, Bob) please correct it (if anyone
needs it).
bye, JAE
Juergen A. Erhard
eMail: uk4h@dkauni2.bitnet
phone: (GERMANY) 0721/591602
"You know that it's monday when you wake up and it's tuesday."
Garfield
Technical Details
Message-ID:
<"89-12-11-21:03:38.02*UK4H"@DKAUNI2.BITNET>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!DKAUNI2.BITNET!UK4HShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!DKAUNI2.BITNET!UK4H From: UK4H@DKAUNI2.BITNET (JAE) Newsgroups: comp.lang.modula2 Subject: Re: MetCom (IT'S A WARNING!!!!) Message-ID: <"89-12-11-21:03:38.02*UK4H"@DKAUNI2.BITNET> Date: 12 Dec 89 03:28:32 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@PSUVM.PSU.EDU> Organization: The Internet Lines: 30 X-Unparsable-Date: Mon, 11 Dec 89 21:03:00 LCL