Path: 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 Organization: The Internet Lines: 30 X-Unparsable-Date: Mon, 11 Dec 89 21:03:00 LCL 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