GC and void*

Nicolas Silva nical.silva at gmail.com
Wed Jan 25 16:11:36 PST 2012


Hi,

I need to be sure: would the GC collect an object that is still reachable
through a void* pointer ?

Also, is there a big difference between casting from Object to T and
casting from void* to T* ?
I mean in term of speed. It looks like could be the same difference as
between C++'s dynamic_cast and static_cast but i'd like to be sure as well.

Thanks in advance,

Nical
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120126/24b05657/attachment-0001.html>


More information about the Digitalmars-d-learn mailing list