RosettaCodeData/Task/Memory-allocation/Objeck/memory-allocation.objeck

4 lines
173 B
Plaintext

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