Ben Hinkle: fast fix for .offsetof bug

Tim M a at b.com
Fri Nov 7 18:36:18 PST 2008


I really need a sollution for this bug. I'm using dmd 1.035 but that  
workaround causes the same error but strangely it reports the line number  
of the error where the struct is defined and not the code calling the  
StructName.init.propertyName.offsetof

On Tue, 05 Jul 2005 07:50:40 +1200, Uwe Salomon <post at uwesalomon.de> wrote:

> Sorry Ben, i already deleted your announce messages for the FooInfo  
> property stuff... I found a solution for this offsetof thing. Use
>
> ####
> Foo.init.x.offsetof
> ####
>
> instead of
>
> ####
> Foo.x.offsetof
> ####
>
> Works like a charm.
>
> Ciao
> uwe




More information about the Digitalmars-d mailing list