Prevent Garbage Collector

Jeroen Bollen jbinero at gmail.com
Sat Jan 4 09:15:11 PST 2014


Is there a way to prevent the Garbage collector from running on 
one particular object? Something like:

int* CreatePermanentInt() {
     int i = 5;
     return &i;
}

And i wouldn't be collected after this.


More information about the Digitalmars-d-learn mailing list