Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread Emil Lenngren
Maybe this fact should be written in the documentation? 2012/5/6 RICHARD WALKER > > > > Sorry for the difficulty of that syntax! > > > > Embedded arrays were done so that it is possible to mimic a memory > > structure declared in a C library. > > > > Otherwise there is no real reason to use them

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread RICHARD WALKER
> > Sorry for the difficulty of that syntax! > > Embedded arrays were done so that it is possible to mimic a memory > structure declared in a C library. > > Otherwise there is no real reason to use them. > > Regards, Ah, so this is something I may need to use if trying to call a function in an ext

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread Benoît Minisini
Le 06/05/2012 19:41, RICHARD WALKER a écrit : > Well thank you all, > in particular I am now delighted to understand the difference between > > Public ArrayOfStrings[5] As String AND--- Public ArrayOfStrings As > New String[5] > > That has puzzled me for YEARS. I would usually just try combinat

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread RICHARD WALKER
Well thank you all, in particular I am now delighted to understand the difference between Public ArrayOfStrings[5] As String AND--- Public ArrayOfStrings As New String[5] That has puzzled me for YEARS. I would usually just try combinations of dimensioning the identifier or the type name until

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread Bruce Bruen
Oops. There was no racial slur intended there. B In fact I'm particularly fond of the "belle cuisine française" especially dishes like "escargots grillés au beurre avec des champignons, les échalotes, le piment, l'ail et du fromage de lait de chèvre dans les cendres". ... damn I just knew that g

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread GMail
On Sun, 2012-05-06 at 13:06 +0100, RICHARD WALKER wrote: > Greetings to the list on a fine Sunday afternoon (should be outside > enjoying it instead of hacking on a new project!). > > I am having difficulty understanding the correct way to program with > arrays in Gambas 3. The documentation has t

Re: [Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread Emil Lenngren
Embedded arrays are declared like this: Public ArrayOfStrings[5] As String While normal arrays are declared like Dim ArrayOfStrings As New String[5] or Public ArrayOfStrings As New String[5] I can agree the documentation is maybe a bit strange... Embedded arrays take upp less space since the da

[Gambas-user] Gambas 3 arrays usage

2012-05-06 Thread RICHARD WALKER
Greetings to the list on a fine Sunday afternoon (should be outside enjoying it instead of hacking on a new project!). I am having difficulty understanding the correct way to program with arrays in Gambas 3. The documentation has this warning notice: In Gambas 3, embedded arrays cannot be used as