Why an abstract pointer cannot be used as value in an associate array?

Cheng Wei rivercheng at gmail.com
Thu Sep 29 19:25:15 PDT 2011


The problem is that the void* cannot convert back to AB* when we want to
use it in c library.

Just don't understand why the cast(AB*)p (p is void *) needs to know the
size of AB. Is there any unsafe cast which can blindly cast the
pointers?


More information about the Digitalmars-d-learn mailing list