RosettaCodeData/Task/Memory-allocation/Objeck/memory-allocation.objeck
2023-07-01 13:44:08 -04:00

3 lines
173 B
Text

foo := Object->New(); // allocates an object on the heap
foo_array := Int->New[size]; // allocates an integer array on the heap
x := 0; // allocates an integer on the stack