Anonymous user
Memory allocation: Difference between revisions
Added zkl
(Scala added) |
(Added zkl) |
||
Line 1,348:
which is accessible to MS-DOS (which runs in 16-bit real mode as opposed
to XPL0 which runs in 32-bit protected mode using a DPMI).
=={{header|zkl}}==
Explicit memory management is not possible in zkl; to create/allocate, call the "create" method, the garbage collector reclaims no longer referenced memory. Some objects dynamically resize themselves and some objects take hints about how big they will become.
Extension libraries/DLLs (written in C) can add this capability (the FFI library does this).
<lang zkl>Data(123); // this bit bucket expects hold 123 bytes
List.createLong(123); // this list expects to hold 123 elements</lang>
=={{header|ZX Spectrum Basic}}==
|