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