Bug with offsetof?

Dan dbdavidson at yahoo.com
Mon Nov 26 03:08:33 PST 2012


On Monday, 26 November 2012 at 03:23:42 UTC, Geancarlo wrote:
> Hello, I'm using DMD32 D Compiler v2.060 for on Windows.
>

> 		writeln(TestStruct.x.offsetof);//bug here
> 

This works without creating your own instance:
           writeln(TestStruct.init.x.offsetof);

Thanks
Dan



More information about the Digitalmars-d-learn mailing list