[Gambas-user] Object.SizeOf(array) = 40

Ru Vuott vuott at ...325...
Sun Mar 20 01:38:33 CET 2016


Hello......

*********************************************
Public Sub Main()

  Dim bb As Byte[] = [1, 2, 3, 4]

  Print Object.SizeOf(bb)

End
*********************************************

Object.SizeOf() method return 40 byte.

Why ?

What is the source structure 40 bytes long?

Maybe "GB_ARRAY_BASE" in "gambas.h" ?

Regards
vuott




More information about the User mailing list