www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Ben Hinkle: fast fix for .offsetof bug

reply "Uwe Salomon" <post uwesalomon.de> writes:
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
Jul 04 2005
parent "Tim M" <a b.com> writes:
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 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

Nov 07 2008