CompuServe Messages

BenchMark NEW/DISPOSE

#: 126836 S12/Modula-2Forum unknown
    26-May-88 23:50:39
Fm: Erv Thompson 70567,523
To: V. Hilliard 75155,1430

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

Try something like: VAR p : POINTER TO something; BEGIN ALLOCATE(p, TSIZE(something)); . . . DEALLOCATE(p, TSIZE(something)); END…… That should be identical. The NEW and DISPOSE functions just alleviated the problem of getting the allocation size. The dropping of them just simplfied matters for the most part.