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 :)
