Page 1 of 1

OffsetOf() Syntax error.

Posted: Tue Jun 24, 2025 5:17 pm
by pjay
Hi all,

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)


Re: OffsetOf() Syntax error.

Posted: Tue Jun 24, 2025 6:01 pm
by mk-soft
Is not a bug, but a features request 8)

Re: OffsetOf() Syntax error.

Posted: Thu Jun 26, 2025 7:19 am
by pjay
Thanks for the input MK, i'll do that.