[Gc] for C++ GC

Wei Bing bwei at ydyn.com
Fri Aug 13 23:59:11 PDT 2004


Dear all,

 

I have one question on C++ GC:

 

***********************

struct test

{

         int a;

         int b;

};

 

new(GC) test;   //collectable?

***********************

 

Why only the class inherited from gc or gc_cleanup can be collectable
one?

I know "new(GC) int" can be collected, is there any significant
difference between "class" and "raw data type"?

 

Thanks

Kind regards,

 

Wei Bing

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/gc/attachments/20040814/0ab3dcec/attachment.htm


More information about the Gc mailing list