Memory allocation: Difference between revisions

Content added Content deleted
(It corrected the position of "Scala".)
(Nimrod -> Nim)
Line 753: Line 753:
131072 maximum pages</lang>
131072 maximum pages</lang>


=={{header|Nimrod}}==
=={{header|Nim}}==
Usually in Nimrod we have automated memory allocation and garbage collection, but we can still manually get a block of memory:
Usually in Nim we have automated memory allocation and garbage collection, but we can still manually get a block of memory:
<lang nimrod># Allocate thread local heap memory
<lang nim># Allocate thread local heap memory
var a = alloc(1000)
var a = alloc(1000)
dealloc(a)
dealloc(a)