Not sure if this is a bug... Should OffsetOf() work with a nested structure without causing a syntax error?
I'm working around the error by summing the offset of the two structure elements I'm using, but I don't think it should be necessary.
Code: Select all
; Win x64 v6.21 beta 9
Structure sVec2f : x.f : y.f : EndStructure
Structure sBezier ; quadratic
v1.sVec2f : v2.sVec2f : v3.sVec2f
EndStructure
Debug OffsetOf(sBezier\v2\y)
; workaround
Debug OffsetOf(sBezier\v2) + OffsetOf(sVec2f\y)