Implicit castable structs

Sean Kelly sean at f4.ca
Tue Jan 8 15:50:10 PST 2008


Frank Benoit wrote:
> 
> Can the D compiler be enhanced to allow this? More precisely:
> "A pointer to a struct is implicitly convertable to all types, that map 
> to the first position in the struct"

That's a pretty cool idea.  It would certainly work.


Sean



More information about the Digitalmars-d mailing list