[Gambas-user] Support for "static" arrays has been removed
Benoît Minisini
gambas at ...1...
Fri May 14 23:35:44 CEST 2010
Hi,
There was a warning in the documentation for a long time, and now it is
effective: the support for static arrays has been removed.
Moreover, the New keyword is now mandatory if you want to instanciate an array
at the same time you declare it.
Concretely, the following syntaxes are not possible anymore:
Private MyStaticArray[16] As MyClass ' #1
Private MyArray As MyClass[16] ' #2
The syntax #2 must be written that way:
Private MyArray As New MyClass[16]
Static arrays will come back in the future (with structure support maybe, who
knows?), but they will use the syntax #2, not the syntax #1. So don't be mixed
up!
Regards,
--
Benoît Minisini
More information about the User
mailing list