Reuse C memory for D struct?

evilrat evilrat666 at gmail.com
Fri Nov 22 21:34:34 PST 2013


On Saturday, 23 November 2013 at 01:39:00 UTC, Baz wrote:
>
> if your D struct is POD and alocated on the heap, it's the 
> same, as long as data type are the same and not 
> plateform-dependent.I'm mean that that you just cast from the 
> initial pointer...

and because of D UFCS it is possible to have methods for this 
struct lying in module scope, not struct :)


More information about the Digitalmars-d-learn mailing list