Arena storage pool: Difference between revisions

m (→‎{{header|Scala}}: Remove empty code section)
Line 393:
Mathematica does not allow stack/heap control, so all variables are defined on the heap. However, tags must be given a ''value'' for a meaningful assignment to take place.
<lang Mathematica>f[x_] := x^2</lang>
 
=={{header|Oforth}}==
 
This only way to allocate memory is to ask new class method on a class object. This will create an instance of this class on the heap. The heap is managed by the garbage collector.
 
The stacks (data stack and execution stack) only holds addresses of these objects. There is no object created on the stacks, apart small integers.
 
There is no user-defined storage pool and it is not possible to explicitly destroy an object.
 
<lang Oforth>Object Class new: MyClass(a, b, b)
MyClass new</lang>
 
=={{header|ooRexx}}==
In ooRexx:
1,015

edits