[Oberon] Dynamically sized allocation with NEW()

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Tue Jan 15 18:22:22 CET 2019

   > > NEW(F.raster, NofBytes);
   > Hi, very interesting. Is this allocated on the heap, or stack?

In the heap. And it is also garbage-collected just like regular heap records. See [1] and [2] below.

On average one saves about 0.5 -1 KB of heap space *per* internalized font.

[1] Documentation:


[2] Implementation: See modules Kernel.Mod (New, Mark, Collect), ORP.Mod (StandProc) and ORG.Mod (New) in:


More information about the Oberon mailing list