Compiler function SizeOf and OffsetOf Bug ?

Everything else that doesn't fall into one of the other PB categories.
User avatar
mk-soft
Always Here
Always Here
Posts: 5401
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Compiler function SizeOf and OffsetOf Bug ?

Post by mk-soft »

Compiler can't resolve the sub-structure offset and size

Code: Select all

Structure sSubData
  value.i
  text.s{20}
EndStructure

Structure sData
  value.i
  param.sSubData
EndStructure

Global MyData.sData
MyData\param\text = "Testing..."

Debug SizeOf(sData\param) ; Ok
Debug SizeOf(sData\param\text) ; Bug ?
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: Compiler function SizeOf and OffsetOf Bug ?

Post by nco2k »

yes, it was never implemented afaik. would sure be nice to have though.

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply