Anonymous user
Memory allocation: Difference between revisions
→{{header|Nim}}
Line 928:
deallocShared(b)
# Allocate and Dellocate a single int on the thread local heap
var p = create(int, sizeof(int)) # allocate
# create zeroes memory; createU does not.
echo p[] # 0
|