Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Benoît Minisini
> On 12/16/2010 11:55 AM, Benoît Minisini wrote: > >> I am converting some older code over and came across this > >> > >> idiosyncrasy with static arrays in subs, I can work around it easily > >> enough but my curiosity is peaked... why are static arrays not allowed > >> at the procedure leve

Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Stephen Bungay
On 12/16/2010 11:55 AM, Benoît Minisini wrote: >> I am converting some older code over and came across this >> idiosyncrasy with static arrays in subs, I can work around it easily >> enough but my curiosity is peaked... why are static arrays not allowed >> at the procedure level? >> > Because

Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Benoît Minisini
> > I am converting some older code over and came across this > idiosyncrasy with static arrays in subs, I can work around it easily > enough but my curiosity is peaked... why are static arrays not allowed > at the procedure level? > Because the stack can't receive them. -- Benoît Minisini

Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Stephen Bungay
On 11/19/2010 08:58 AM, Fabien Bodard wrote: > 2010/11/19 Demosthenes Koptsis: >> ok! >> >> i was cofused from two things >> >> 1) >> in previous message about static arrays Fabien said that: >> >>> yes a static array is not an object ... that's why it's a little bit >>> deprecated :) >>> >>> >>> a

Re: [Gambas-user] About help and arrays and variables

2010-11-22 Thread Benoît Minisini
> 2010/11/23 Benoît Minisini : > >> > In Gambas 3, you have support for callbacks. That means you can send a > >> > Gambas function to a extern C function, and the extern C function will > >> > use it (almost) transparently! > > Can Gambas code call a Gambas callback? > > Ian > A Gambas callbac

Re: [Gambas-user] About help and arrays and variables

2010-11-22 Thread Ian Haywood
2010/11/23 Benoît Minisini : >> > In Gambas 3, you have support for callbacks. That means you can send a >> > Gambas function to a extern C function, and the extern C function will >> > use it (almost) transparently! Can Gambas code call a Gambas callback? Ian ---

Re: [Gambas-user] About help and arrays and variables

2010-11-22 Thread Benoît Minisini
> >> > >> Of the three languages (C++, Pascal, Gambas), Gambas is the most > >> high-level. It is fully OOP but lacks the "protected" access level > >> (personally I hardly used it in C++ and don't miss it) > >> The only things I really miss are function pointers ("procedural > >> variables" in Pa

Re: [Gambas-user] About help and arrays and variables

2010-11-22 Thread Fabien Bodard
Le 22 novembre 2010 15:14, Benoît Minisini a écrit : >> On Sat, Nov 20, 2010 at 4:24 PM, Werner wrote: >> > On 20/11/10 04:40, Zelimir Ikovic wrote: >> >> I am following discussion on Gambas more than 3 months. >> >> >> >> Last 10 years I worked in VB6 (70%) and C(30%) on Windows. >> >> >> >> I a

Re: [Gambas-user] About help and arrays and variables

2010-11-22 Thread Benoît Minisini
> On Sat, Nov 20, 2010 at 4:24 PM, Werner wrote: > > On 20/11/10 04:40, Zelimir Ikovic wrote: > >> I am following discussion on Gambas more than 3 months. > >> > >> Last 10 years I worked in VB6 (70%) and C(30%) on Windows. > >> > >> I am about to switch to Linux, and I have to decide: > >> Gamb

Re: [Gambas-user] About help and arrays and variables

2010-11-20 Thread Demosthenes Koptsis
hi, i have gambas2-2.21 rev3300 > Now my examples tell me if i am right... > > Dynamic arrays - > 'locale scope in a SUB > DIM aInt2 AS Integer[3]'this is a dynamic array > DIM aInt2 AS Integer[] = [1, 2, 3] 'another dynamic array > > 'global scope in

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Zelimir Ikovic : > I am following discussion on Gambas more than 3 months. > > Last 10 years I worked in VB6 (70%) and C(30%) on Windows. > > I am about to switch to Linux, and I have to decide: > Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK > I am just wondering is there an

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/20 Michael : > Zelimir, > I have spent years in VB6 and VB.Net and C#.Net. I have just recently > switched to Gambas2 and it is very rewarding. It doesn't have the full > range of facilities of VB.Net but in many instances it is easier to work > with and any shortcomings can be overcome. It

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Ian Haywood
On Sat, Nov 20, 2010 at 4:24 PM, Werner wrote: > On 20/11/10 04:40, Zelimir Ikovic wrote: >> I am following discussion on Gambas more than 3 months. >> >> Last 10 years I worked in VB6 (70%) and C(30%) on Windows. >> >> I am about to switch to Linux, and I have to decide: >> Gambas3, FreePascal (f

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Werner
On 20/11/10 04:40, Zelimir Ikovic wrote: > I am following discussion on Gambas more than 3 months. > > Last 10 years I worked in VB6 (70%) and C(30%) on Windows. > > I am about to switch to Linux, and I have to decide: > Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK > I am just wonderin

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Michael
Zelimir, I have spent years in VB6 and VB.Net and C#.Net. I have just recently switched to Gambas2 and it is very rewarding. It doesn't have the full range of facilities of VB.Net but in many instances it is easier to work with and any shortcomings can be overcome. It's fun! Haven't tried Gambas

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
i think the difference about arrays of gambas2 and gambas3 is that the second has more datatypes. The basic syntax is the same for the subject of declaration for static and dynamic arrays. On Fri, 2010-11-19 at 21:06 +0100, Fabien Bodard wrote: > as i was saying it is not easy to me to talk abou

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Zelimir Ikovic
I am following discussion on Gambas more than 3 months. Last 10 years I worked in VB6 (70%) and C(30%) on Windows. I am about to switch to Linux, and I have to decide: Gambas3, FreePascal (fpGUI or Lazarus) or C, C++ and FLTK I am just wondering is there any discussion on this topic, and where.

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
as i was saying it is not easy to me to talk about gambas2 ... there is at least 2 year that i dont use it ... i'm working all the time on gambas3. sorry, -- Beautiful is writing same markup. Internet Explorer 9 supports

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
hm i have not write so far object programming but i know the basics how to do that. But i have no experience about that you say. My book is for Gambas2 and i all i said about static and dynamic arrays is from this side. On Fri, 2010-11-19 at 16:52 +0100, Fabien Bodard wrote: > 2010/11/19 Simonar

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Simonart Dominique : > Le 19/11/2010 14:58, Fabien Bodard a écrit : >> 2010/11/19 Demosthenes Koptsis: >>> ok! >>> >>> i was cofused from two things >>> > Hi all, > > I tend to get a little confused too! > > Are these assumptions correct? > > If array notation is on Variable name, array

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > as i think it now > > the word STATIC is not for declaration static arrays but > > If the STATIC keyword is specified, the same variable will be shared > with every object of this class. > > i get this from variable syntax, same for arrays which they are a set of

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
Ok Dimitri i will !!! On Fri, 2010-11-19 at 07:49 -0700, Dimitris Anogiatis wrote: > Demosthenes, > > I might be able to help out with the Greek Translation of the wiki as well. > When you're done with your book, send me an email perhaps we can work > on that together. > > Regards, > Dimitris >

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Dimitris Anogiatis
Demosthenes, I might be able to help out with the Greek Translation of the wiki as well. When you're done with your book, send me an email perhaps we can work on that together. Regards, Dimitris On Fri, Nov 19, 2010 at 7:40 AM, Demosthenes Koptsis wrote: > On Fri, 2010-11-19 at 15:17 +0100, Si

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
On Fri, 2010-11-19 at 15:17 +0100, Simonart Dominique wrote: > Le 19/11/2010 14:58, Fabien Bodard a écrit : > > 2010/11/19 Demosthenes Koptsis: > >> ok! > >> > >> i was cofused from two things > >> > Hi all, > > I tend to get a little confused too! > > Are these assumptions correct? > > If array

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
as i think it now the word STATIC is not for declaration static arrays but If the STATIC keyword is specified, the same variable will be shared with every object of this class. i get this from variable syntax, same for arrays which they are a set of variables. A static array is declared as PRI

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
> Normal it's Dynamic array :) > > Dynamic : > DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] So what the difference between DIM aInt2 AS Integer[3], DIM aInt2 AS Integer[] if both are dynamic? Now my examples tell me if i am right... Dynamic arrays

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Simonart Dominique
Le 19/11/2010 14:58, Fabien Bodard a écrit : > 2010/11/19 Demosthenes Koptsis: >> ok! >> >> i was cofused from two things >> Hi all, I tend to get a little confused too! Are these assumptions correct? If array notation is on Variable name, array is STATIC If array notation is on Data type, array

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > ok! > > i was cofused from two things > > 1) > in previous message about static arrays Fabien said that: > >>yes a static array is not an object ... that's why it's a little bit >>deprecated :) >> >> >>anther way : >> >>dim htmpArray as integer[]=  [1, 2, 3, 4, 5,

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
ok! i was cofused from two things 1) in previous message about static arrays Fabien said that: >yes a static array is not an object ... that's why it's a little bit >deprecated :) > > >anther way : > >dim htmpArray as integer[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > so a DIM htmpArray as integer

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > On Fri, 2010-11-19 at 01:38 +0100, Benoît Minisini wrote: >> > Can someone explain embedded arrays further? >> > >> > i understand nothing. >> > >> > i know what a normal array is and that it can be static or dynamic. >> > >> > But "embedded arrays are just a way

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Demosthenes Koptsis
On Fri, 2010-11-19 at 01:38 +0100, Benoît Minisini wrote: > > Can someone explain embedded arrays further? > > > > i understand nothing. > > > > i know what a normal array is and that it can be static or dynamic. > > > > But "embedded arrays are just a way to access a part of a Gambas object" >

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
2010/11/19 Fabien Bodard : > http://gambasdoc.org/help/cat/objectmodel > > http://gambasdoc.org/help/cat/arraydecl > > Ok so, > > > an embedd array is a private array... oups i forgot to read this line in the help : "In Gambas 3, embedded arrays cannot be used as local variables anymore. But they

Re: [Gambas-user] About help and arrays and variables

2010-11-19 Thread Fabien Bodard
http://gambasdoc.org/help/cat/objectmodel http://gambasdoc.org/help/cat/arraydecl Ok so, an embedd array is a private array... you cannot give it as argument throw a procedure ex : Public mysub(myVar as MyArray[]) Like we can do with a dynamic array that have global reference such as any obj

Re: [Gambas-user] About help and arrays and variables

2010-11-18 Thread Demosthenes Koptsis
Benoît, i am thinking seriously to undertake the work of Greek translation of wiki (gambas help). I ll tell for that in the future. But for now i will stay to writing the book. i prefer the changes to be made by someone else with more experience, like you and i follow the translation cause some

Re: [Gambas-user] About help and arrays and variables

2010-11-18 Thread Benoît Minisini
> Can someone explain embedded arrays further? > > i understand nothing. > > i know what a normal array is and that it can be static or dynamic. > > But "embedded arrays are just a way to access a part of a Gambas object" > > for example i have a TextBox1 how can i use an embedded array on it?

Re: [Gambas-user] About help and arrays and variables

2010-11-18 Thread Benoît Minisini
> Hi again, > > i am writing my book and now i am in the section about arrays. > > i see that in help wiki the pages about arrays are mixed up with > variables subject. > > This is not well readable and understood. > > I feel that the arrays try to be described in a general way like > variables

Re: [Gambas-user] About help and arrays and variables

2010-11-17 Thread Demosthenes Koptsis
Can someone explain embedded arrays further? i understand nothing. i know what a normal array is and that it can be static or dynamic. But "embedded arrays are just a way to access a part of a Gambas object" for example i have a TextBox1 how can i use an embedded array on it? You mean do use t

Re: [Gambas-user] About help and arrays and variables

2010-11-17 Thread Benoît Minisini
> 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 differ

[Gambas-user] About help and arrays and variables

2010-11-17 Thread Demosthenes Koptsis
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] This description for the use of NEW is i

[Gambas-user] About help and arrays and variables

2010-11-17 Thread Demosthenes Koptsis
Hi again, i am writing my book and now i am in the section about arrays. i see that in help wiki the pages about arrays are mixed up with variables subject. This is not well readable and understood. I feel that the arrays try to be described in a general way like variables. For example 1) in