[Gambas-user] Support for "static" arrays has been removed

Fabien Bodard gambas.fr at ...626...
Sat May 15 11:05:03 CEST 2010


ok :-)



Le 14 mai 2010 23:35, Benoît Minisini <gambas at ...1...> a écrit :
> 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
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list