[Gambas-user] Issue 443 in gambas: Array size limit???

gambas at ...2524... gambas at ...2524...
Thu Jun 20 23:13:41 CEST 2013


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

New issue 443 by BugCatch... at ...626...: Array size limit???
http://code.google.com/p/gambas/issues/detail?id=443

1) Describe the problem.
Trying to create an array with these values:

Dim arrItemId As Integer[] = [300, 301, 302, 303, 304, 305, 306, 307, 308,  
309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323,  
324, 325, 326, 32043, 32506, 34594, 35666, 35683, 35684, 50023, 52047,  
52126, 53026, 53451, 53556, 53911, 54100, 62012, 62042, 62044, 62045,  
62047, 62050, 62051, 62238, 62298, 62332, 62370, 62380, 62462, 62467,  
62478, 62492, 62503, 62517, 62520, 62535, 62565, 62604, 62620, 62630]

Get error saying: "Too many arguments"

Isolated the magic number down to 63 arguments. I have 65. I did not find  
anything in the documentation about a limit on array sizes. Did I miss  
something, or is this an artifact from earlier times?

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
gambas3-ide 3.4.1-1raring2

[System]
OperatingSystem=Linux
Kernel=3.8.0-25-generic
Architecture=x86_64
Distribution=Ubuntu 13.04
Desktop=GNOME

GUI component: QT4 / GTK+

3) Provide a little project that reproduces the bug or the crash.
See "Dim arrItemId As Integer[] " declaration above.

4) If your project needs a database, try to provide it, or part of it.
N/A

5) Explain clearly how to reproduce the bug or the crash.
Try to declare this array as written

6) By doing that carefully, you have done 50% of the bug fix job!

IMPORTANT NOTE: if you encounter several different problems or bugs, (for
example, a bug in your project, and an interpreter crash while debugging
it), please create distinct issues!


-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings




More information about the User mailing list