[Gambas-bugtracker] Bug #2249: Make Array of Structs work correctly

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Jun 11 19:41:51 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2249&from=L21haW4-

Comment #1 by Benoît MINISINI:

Array of structures should work as expected with the last commit.

Object.SizeOf() does not necessarily the size of a structure it what it received it not an actual Gambas object.

When you access sub-members of a structures that are other structures or embedded arrays, Gambas creates transient "fake" objects to represent them. This is the size of these transient objects Object.SizeOf() returns.




More information about the Bugtracker mailing list