Memory allocation: Difference between revisions

Content added Content deleted
(Nimrod -> Nim)
(Updated D entry)
Line 374:
 
// This is thread-local:
int data1[nInts] data1;
 
// This is global:
__gshared int data2[nInts] data2;
 
void main() {
// Static memory, it's thread-local but its name is usable
// only locally:
static int data3[nInts] data3;
 
// Static memory, it's global but its name is usable only locally:
__gshared static int data4[nInts] data4;
 
// ----------------------