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

4 lines
173 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
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