Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 176 by tommyl...@interia.pl: 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.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to