Memory allocation: Difference between revisions

m
(Lingo added)
Line 715:
=={{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>-- createCreate a ByteArray of 100 Kb (pre-filled with 0 bytes)
ba = byteArray(102400)</lang>
 
-- Lingo uses garbage-collection, so allocated memory is released when no more references exist.
-- For the above variable ba, this can be achieved by calling:
ba = VOID</lang>
 
=={{header|Maple}}==
Anonymous user