> in http://gambasdoc.org/help/lang/arraydecl?show
> 
> the syntax for Embedded arrays is
> 
> [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS
> Native Datatype
> 
> but i could use also the NEW keyword
> 
> For example
> 
> PUBLIC aNames AS NEW String[2, 2]

That is a different thing.

        PUBLIC aNames AS New String[2, 2]

Is the same thing as:

        PUBLIC aNames As String[]
        aNames = New String[2, 2]

Where as:

        PUBLIC aNames[2, 2] As String

Is an embedded array.

"Normal" arrays are true Gambas objects, whereas embedded arrays are just a 
way to access a part of a Gambas object as an array. The array contents is 
stored in the memory slot allocated to the Gambas object where it is declared.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to