Bug with offsetof?

Jacob Carlborg doob at me.com
Sun Nov 25 23:18:34 PST 2012


On 2012-11-26 05:03, jerro wrote:
> This works for me if I add parentheses to the line where you get the
> error like this:
>
> writeln(TestStruct().x.offsetof);//bug here

This will create an instance of TestStruct.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list