[Gambas-user] Issue 176 in gambas: problems with SizeOf()
gambas at ...2524...
gambas at ...2524...
Thu Dec 29 18:26:05 CET 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 176 by tommyl... at ...2525...: problems with SizeOf()
http://code.google.com/p/gambas/issues/detail?id=176
1) Describe the problem.
It seems like the SizeOf function expects integer as argument and causes
erroro when I try to check anything that's not of integer type.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r4360
Operating system: Linux
Distribution: Ubuntu
Architecture: x86
GUI component: QT3 / QT4 / GTK+
Desktop used: Gnome
3) Provide a little project that reproduces the bug or the crash.
dim f as float = 1.5
print sizeof(f)
results in: "Type mismatch: wanted Integer, got Float instead"
in gbx_class_info.c there is declaration of the function:
GB_METHOD("SizeOf", "i", NULL, "(Type)i"),
Should the "Type" be of "i"?
Regards
Tomek.
More information about the User
mailing list