RosettaCodeData/Task/Memory-allocation/Lingo/memory-allocation.lingo
2023-07-01 13:44:08 -04:00

6 lines
252 B
Text

-- 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