It is currently Wed Jul 17, 2019 4:13 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Compiler function SizeOf and OffsetOf Bug ?
PostPosted: Wed Jan 24, 2018 10:59 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 1758
Location: Germany
Compiler can't resolve the sub-structure offset and size
Code:
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 / OOP-BaseClassDispatch / Event-Designer
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: Compiler function SizeOf and OffsetOf Bug ?
PostPosted: Thu Jan 25, 2018 12:08 am 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 1334
yes, it was never implemented afaik. would sure be nice to have though.

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: jack and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye