Memory allocation: Difference between revisions

Lingo added
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble.)
(Lingo added)
Line 712:
 
When run using Sun's JVM implementation, the above simply outputs "created". Therefore, you cannot rely on <tt>finalize</tt> for cleanup.
 
=={{header|Lingo}}==
Lingo does not allow direct memory allocation and has no direct access to memory types like heap, stack etc. But indirectly the ByteArray data type can be used to allocate memory that then later can be filled with custom data:
<lang lingo>-- create a ByteArray of 100 Kb (pre-filled with 0 bytes)
ba = byteArray(102400)</lang>
 
=={{header|Maple}}==
Anonymous user