Page 1 of 1

Unlimited amount of structure level for SizeOf(), etc.

Posted: Wed Feb 21, 2024 4:43 pm
by Psychophanta
Since SizeOf() and others are runned at compile time, please perform it for an undefined amount of structure level for SizeOf(), etc.
Visual sample (btw; it ends in a "syntax error" as you can test yourself):

Code: Select all

Structure Person
  Name.s
  ForName.s 
  Age.w 
EndStructure
Structure Alien
  Age.q
  eon.Person
EndStructure

John.Person\Name = "John"
uhu.Alien\Age = 50000

Debug SizeOf(John\Age)

Debug SizeOf(uhu\Age)
Debug SizeOf(uhu\eon\Age); <- syntax error ! ? :(