Type Aware GC Questions
Frank Benoit (keinfarbton)
benoit at tionex.removethispart.de
Mon Jan 29 10:50:06 PST 2007
> If I have such a class, is there something I can do to inform the GC not to
> scan a certain portiion of memory?
If I understand that correctly, you can have another class - probably a
nested one - that holds the data.
C will be scanned, but not the instance of C.Data
class C {
// some references
Object o;
// Data
private static class Data{
// only non-reference types/data
int a;
}
private Data data;
public this(){
data = new Data;
data.a = 3;
}
}
More information about the Digitalmars-d
mailing list