Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!apple!claris!sts!ditka!qiclab!m2xenix!randy From: randy@m2xenix.UUCP (Randy Bush) Newsgroups: comp.lang.modula2 Subject: NEW/DISPOSE ALLOCATE/DEALLOCATE Message-ID: <460@m2xenix.UUCP> Date: 18 Dec 89 06:16:45 GMT References: <"89-12-11-21:03:38.02*UK4H"@DKAUNI2.BITNET> Reply-To: randy@m2xenix.UUCP (Randy Bush) Organization: Pacific Systems Group, Portland Oregon US Lines: 14 In article <"89-12-11-21:03:38.02*UK4H"@DKAUNI2.BITNET> you write: >Instead you have to write > ALLOCATE(x,SIZE(x^)); > DEALLOCATE(x,SIZE(x^)); As x^ does not exist when the parameter is evaluated, maybe it would be better to say VAR x : POINTER TO xType; ... ALLOCATE ( x, xType ) -- ..!uunet!m2xenix!randy randy@m2xenix.uucp (Randy Bush)