[Gambas-user] Issue 196 in gambas: Inline arrays with different types

gambas at ...2524... gambas at ...2524...
Thu Jan 19 03:23:24 CET 2012


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

New issue 196 by emil.len... at ...626...: Inline arrays with different types
http://code.google.com/p/gambas/issues/detail?id=196

1) Describe the problem.
There are some cases where different types prevent an inline array from  
being created.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4406

3) Provide a little project that reproduces the bug or the crash.
Dim a As New Integer[1]
Dim b As New Float[1]
Print [a, b, 1]

It thinks Object[] is the correct array-type to create, resulting in bad  
conversion (runtime error) from Integer to Object.
The correct array-type would be a Variant[].





More information about the User mailing list