_based pointers in D?

bearophile bearophileHUGS at lycos.com
Fri Jun 4 18:12:58 PDT 2010


Robert:
> Hi, is there a similar construct like a _based pointer in D?

This is a cute feature, more docs here:
http://msdn.microsoft.com/en-us/library/57a97k4e.aspx

D doesn't have this feature, but you can try to implement it using a struct that defines opUnary!("*") and more. If your implementation comes out nicely and you are willing to share your code, then maybe Andrei can add it to Phobos2.

Bye,
bearophile


More information about the Digitalmars-d mailing list