RosettaCodeData/Task/Memory-allocation/Lingo/memory-allocation.lingo

7 lines
252 B
Plaintext

-- Create a ByteArray of 100 Kb (pre-filled with 0 bytes)
ba = byteArray(102400)
-- 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