Adding pointers to GC with destructers

Freddy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 19 16:38:47 PDT 2015


C libraries have a pattern of
----
HiddenType* getObj();
void freeObj(HiddenType*);
----
Is there any way I can make the GC search for a "HiddenType*" and 
run "freeObj" when the pointer is not found.


More information about the Digitalmars-d-learn mailing list