Re: [Gambas-user] About help and arrays and variables
On 11/19/2010 08:58 AM, Fabien Bodard wrote: 2010/11/19 Demosthenes Koptsisdemosthen...@gmail.com: 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub 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? -- 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 -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
On Sat, Nov 20, 2010 at 4:24 PM, Werner wd...@netfront.net 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 (fpGUI or Lazarus) or C, C++ and FLTK I am just wondering is there any discussion on this topic, and where. How do you compare Gambas against those tools Gambas is the smoothest transition from VB in terms of language syntax, the differences are usually thngs most VB programmers would acknowledge as defects in the original language, such as 1-based arrays, overloading ( ) to deference arrays. However Gambas is Linux-only, the advantage of FreePascal and C++ is you can port back to Windows. The Gambas IDE is easier to use and more stable IMHO. 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 Pascal) and a proper heredoc syntax. 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! As for heredoc syntax, I don't know what that word means. Gambas is interpreted, the other 2 are compiled, so it's slower, but in practice I haven't found this an issue (it's heaps faster than Java, and even Ruby, probably on par with Python) Ian I made a few comparison tests with Python, and Gambas is a little bit faster in stupid benchmarks (loops + arithmetic computation). I think it should be faster when calling methods inside components written in C/C++ too. Of course, it is slower than compiled and JIT interpreted languages. But I guess it uses less memory and is faster to start. 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
Re: [Gambas-user] About help and arrays and variables
Le 22 novembre 2010 15:14, Benoît Minisini gam...@users.sourceforge.net a écrit : On Sat, Nov 20, 2010 at 4:24 PM, Werner wd...@netfront.net 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 (fpGUI or Lazarus) or C, C++ and FLTK I am just wondering is there any discussion on this topic, and where. How do you compare Gambas against those tools Gambas is the smoothest transition from VB in terms of language syntax, the differences are usually thngs most VB programmers would acknowledge as defects in the original language, such as 1-based arrays, overloading ( ) to deference arrays. However Gambas is Linux-only, the advantage of FreePascal and C++ is you can port back to Windows. The Gambas IDE is easier to use and more stable IMHO. 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 Pascal) and a proper heredoc syntax. 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! As for heredoc syntax, I don't know what that word means. http://www.manuelphp.com/php/language.types.string.syntax.heredoc.php Gambas is interpreted, the other 2 are compiled, so it's slower, but in practice I haven't found this an issue (it's heaps faster than Java, and even Ruby, probably on par with Python) Ian I made a few comparison tests with Python, and Gambas is a little bit faster in stupid benchmarks (loops + arithmetic computation). I think it should be faster when calling methods inside components written in C/C++ too. Of course, it is slower than compiled and JIT interpreted languages. But I guess it uses less memory and is faster to start. 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 -- Fabien Bodard -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
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 Pascal) and a proper heredoc syntax. 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! As for heredoc syntax, I don't know what that word means. http://www.manuelphp.com/php/language.types.string.syntax.heredoc.php OK. Very powerful to offuscate your code and make it unreadable. :-) -- Benoît Minisini -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
2010/11/23 Benoît Minisini gam...@users.sourceforge.net: 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 -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
2010/11/23 Benoît Minisini gam...@users.sourceforge.net: 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 callback is a normal Gambas function, so yes. -- Benoît Minisini -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] About help and arrays and variables
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 Declarations PUBLIC aInt2 AS Integer[] = [1, 2, 3] 'more dynamic arrays PRIVATE aInt2 AS Integer[] = [1, 2, 3] --- And now finally static arrays: Static arrays - 'local scope in a SUB DIM aInt2[10] AS Integer 'this static array is in a SUB! 'global scope in Declarations PRIVATE aInt2[10] AS Integer ' this static array is ok in declarations PUBLIC aInt2[10] AS Integer 'this is forbidden in global scope, i get an error --- for static arrays i could declare it as aInt2[10] AS Integer in FMain form without PRIVATE or STATIC word. Is it accepted this? -- Regards, Demosthenes Koptsis. -- 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
Re: [Gambas-user] About help and arrays and variables
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 objects The embedd array have the same memory space than the object into it is initialized... so it die with this object A dynamic array will be alive all the time it is referenced somewhere in the project. like any gambas objects. Yes i prefer dynamics one ... and i think , like Benoit i don't use static one any more. Le 19 novembre 2010 01:38, Benoît Minisini gam...@users.sourceforge.net a écrit : 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 the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? -- 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 -- Fabien Bodard -- 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
Re: [Gambas-user] About help and arrays and variables
2010/11/19 Fabien Bodard gambas...@gmail.com: 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 can be public! so the only advantage to static array i see it's that they die with the object :) 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 objects The embedd array have the same memory space than the object into it is initialized... so it die with this object A dynamic array will be alive all the time it is referenced somewhere in the project. like any gambas objects. Yes i prefer dynamics one ... and i think , like Benoit i don't use static one any more. Le 19 novembre 2010 01:38, Benoît Minisini gam...@users.sourceforge.net a écrit : 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 the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? -- 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 -- Fabien Bodard -- Fabien Bodard -- 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
Re: [Gambas-user] About help and arrays and variables
2010/11/19 Demosthenes Koptsis demosthen...@gmail.com: 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 for example i have a TextBox1 how can i use an embedded array on it? You mean do use the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? Yes i did. But i try to understand. Thanks Fabien! So 1) PRIVATE aInt1[3] AS Integer is an embedded array of integers with 3 elements in an object for example FMain. 2) DIM iFieldr AS NEW Integer[9] is a static array of integers with 9 elements 3) Also PRIVATE Languages AS String[] = [ fr, it, es, de, ja ] is a static !!! no ..dynamic ... you are assigned a dynamic array = [...] in fact [...] generate an array and you assign it's internal ref to the variable string array Languages (so far i thought that this was a dynamic array, because it was declared with no dimensions PRIVATE Languages AS String[]) 4) A dynamic array has global reference, where is it declared ? in intern ... it's a pointer but in the reallity it act like a normal variable private/public/static/ and local A dynamic array declaration how is it? private aMyArray as new Integer[] but it can be too private aLabels as new Label[] this is dynamic array, there are all herited of the array class, witch allow to add, resize (preserve), remove, etc some class in dynamic array have some extents like .sort or .find Example? ps: so far i knew that 1) a static array has fixed dimensions, cannot be resized yes 2) a dynamic array can be resized, has no static dimensions. so i thought a DIM aInt AS Integer[5] is a static and PRIVATE aInt AS Integer[] is a dynamic yes but i saw that in both declarations i can do aInt.Add(6) and to add éléments. no AND YOU'VE FOUND A BEAUTIFUL BUG IN THE IDE :) if you try that and exec it generate an error and say static array The terminology of static and dynamic is different in Gambas or i am wrong again? no i think it's the same as other language 2010/11/19 Fabien Bodard gambas...@gmail.com: 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 can be public! so the only advantage to static array i see it's that they die with the object :) 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 objects The embedd array have the same memory space than the object into it is initialized... so it die with this object A dynamic array will be alive all the time it is referenced somewhere in the project. like any gambas objects. Yes i prefer dynamics one ... and i think , like Benoit i don't use static one any more. Le 19 novembre 2010 01:38, Benoît Minisini gam...@users.sourceforge.net a écrit : 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 the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? -- 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 -- Fabien Bodard -- 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
Re: [Gambas-user] About help and arrays and variables
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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! On Fri, 2010-11-19 at 14:01 +0100, Fabien Bodard wrote: 2010/11/19 Demosthenes Koptsis demosthen...@gmail.com: 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 for example i have a TextBox1 how can i use an embedded array on it? You mean do use the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? Yes i did. But i try to understand. Thanks Fabien! So 1) PRIVATE aInt1[3] AS Integer is an embedded array of integers with 3 elements in an object for example FMain. 2) DIM iFieldr AS NEW Integer[9] is a static array of integers with 9 elements 3) Also PRIVATE Languages AS String[] = [ fr, it, es, de, ja ] is a static !!! no ..dynamic ... you are assigned a dynamic array = [...] in fact [...] generate an array and you assign it's internal ref to the variable string array Languages (so far i thought that this was a dynamic array, because it was declared with no dimensions PRIVATE Languages AS String[]) 4) A dynamic array has global reference, where is it declared ? in intern ... it's a pointer but in the reallity it act like a normal variable private/public/static/ and local A dynamic array declaration how is it? private aMyArray as new Integer[] but it can be too private aLabels as new Label[] this is dynamic array, there are all herited of the array class, witch allow to add, resize (preserve), remove, etc some class in dynamic array have some extents like .sort or .find Example? ps: so far i knew that 1) a static array has fixed dimensions, cannot be resized yes 2) a dynamic array can be resized, has no static dimensions. so i thought a DIM aInt AS Integer[5] is a static and PRIVATE aInt AS Integer[] is a dynamic yes but i saw that in both declarations i can do aInt.Add(6) and to add éléments. no AND YOU'VE FOUND A BEAUTIFUL BUG IN THE IDE :) if you try that and exec it generate an error and say static array The terminology of static and dynamic is different in Gambas or i am wrong again? no i think it's the same as other language 2010/11/19 Fabien Bodard gambas...@gmail.com: 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 can be public! so the only advantage to static array i see it's that they die with the object :) 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 objects The embedd array have the same memory space than the object into it is initialized... so it die with this object A dynamic array will be alive all the time it is referenced somewhere in the project. like any gambas objects. Yes i prefer dynamics one ... and i think , like Benoit i don't use static one any more. Le 19 novembre 2010 01:38, Benoît Minisini gam...@users.sourceforge.net a écrit : 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 the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? -- Benoît Minisini -- Beautiful is writing same
Re: [Gambas-user] About help and arrays and variables
2010/11/19 Demosthenes Koptsis demosthen...@gmail.com: 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub -- 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
Re: [Gambas-user] About help and arrays and variables
Le 19/11/2010 14:58, Fabien Bodard a écrit : 2010/11/19 Demosthenes Koptsisdemosthen...@gmail.com: 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 is DYNAMIC 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub -- 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
Re: [Gambas-user] About help and arrays and variables
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 - '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 Declarations PUBLIC aInt2 AS Integer[] = [1, 2, 3] 'more dynamic arrays PRIVATE aInt2 AS Integer[] = [1, 2, 3] --- And now finally static arrays: Static arrays - 'local scope in a SUB DIM aInt2[10] AS Integer 'this static array is in a SUB! 'global scope in Declarations PRIVATE aInt2[10] AS Integer ' this static array is ok in declarations PUBLIC aInt2[10] AS Integer 'this is forbidden in global scope, i get an error --- are these ok? i think i understood it except DIM aInt2[10] AS Integer 'this static array is in a SUB! ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub yes i notice that -- 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 -- 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
Re: [Gambas-user] About help and arrays and variables
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 PRIVATE TicTacToe[3] AS Integer STATIC PRIVATE TicTacToe[3] AS Integer A dynamic arrays is declared as DIM TicTacToe AS Integer[3] DIM TicTacToe AS Integer[] DIM TicTacToe AS NEW Integer[] PUBLIC TicTacToe AS Integer[3] PUBLIC TicTacToe AS Integer[] PRIVATE TicTacToe AS Integer[3] am i right Fabien? 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 Koptsisdemosthen...@gmail.com: 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 is DYNAMIC 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub -- 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 -- 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
Re: [Gambas-user] About help and arrays and variables
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 Koptsisdemosthen...@gmail.com: 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 PRIVATE TicTacToe[3] AS Integer 'a static array If array notation is on Data type, array is DYNAMIC PRIVATE TicTacToe AS Integer[] 'a dynamic array 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub -- 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 -- 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
Re: [Gambas-user] About help and arrays and variables
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 demosthen...@gmail.com wrote: 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 Koptsisdemosthen...@gmail.com: 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 PRIVATE TicTacToe[3] AS Integer 'a static array If array notation is on Data type, array is DYNAMIC PRIVATE TicTacToe AS Integer[] 'a dynamic array 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub -- 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 -- 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 -- 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
Re: [Gambas-user] About help and arrays and variables
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 On Fri, Nov 19, 2010 at 7:40 AM, Demosthenes Koptsis demosthen...@gmail.com wrote: 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 Koptsisdemosthen...@gmail.com: 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 PRIVATE TicTacToe[3] AS Integer 'a static array If array notation is on Data type, array is DYNAMIC PRIVATE TicTacToe AS Integer[] 'a dynamic array 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[]= [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] i thought was a static. no a dynamic ... look at the bottom and 2) - DIM aInt2 AS Integer[3] aInt2[0] = 1 aInt2[1] = 20 aInt2[2] = 30 aInt2.Add(40) 'here is the resize of the array aInt2.Add(50) aInt2.Add(60) PRINT aInt2[3] PRINT aInt2[4] PRINT aInt2[5] - In my gambas2-2.21 rev3300 there is no error, nor compilation nor execution! Normal it's Dynamic array :) Dynamic : DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ] ex : dim aInt as Integer[10] Static [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS Native Datatype ex : Private aInt[10] as integer you can't declare a staic array in a sub -- 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 -- 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 -- 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 -- 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
Re: [Gambas-user] About help and arrays and variables
2010/11/19 Simonart Dominique simonart.domini...@wanadoo.fr: Le 19/11/2010 14:58, Fabien Bodard a écrit : 2010/11/19 Demosthenes Koptsisdemosthen...@gmail.com: 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 is DYNAMIC the difficulty for me is that gambas2 is not gambas3 :) in gambas2 only static array can be used for other thing than the basic datatypes (string, integer, float, object, etc) in gambas3 the dynamic array can manage all the types. before i was writted private aObj as Object[] Dim hLabel as New Label(me) sObj.Add(hLabel) And now private aLbl as Label[] Dim hLabel as New Label(me) sLbl.Add(hLabel) -- 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
Re: [Gambas-user] About help and arrays and variables
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 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
Re: [Gambas-user] About help and arrays and variables
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. How do you compare Gambas against those tools Regards -- 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
Re: [Gambas-user] About help and arrays and variables
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 wondering is there any discussion on this topic, and where. How do you compare Gambas against those tools Regards Hello and welcome. Mr. Ballmer will not like this. He will not like this at all. Watch out for low flying chairs. Sorry, couldn't resist. -- 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
Re: [Gambas-user] About help and arrays and variables
On Sat, Nov 20, 2010 at 4:24 PM, Werner wd...@netfront.net 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 (fpGUI or Lazarus) or C, C++ and FLTK I am just wondering is there any discussion on this topic, and where. How do you compare Gambas against those tools Gambas is the smoothest transition from VB in terms of language syntax, the differences are usually thngs most VB programmers would acknowledge as defects in the original language, such as 1-based arrays, overloading ( ) to deference arrays. However Gambas is Linux-only, the advantage of FreePascal and C++ is you can port back to Windows. The Gambas IDE is easier to use and more stable IMHO. 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 Pascal) and a proper heredoc syntax. Gambas is interpreted, the other 2 are compiled, so it's slower, but in practice I haven't found this an issue (it's heaps faster than Java, and even Ruby, probably on par with Python) Ian -- 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
Re: [Gambas-user] About help and arrays and variables
2010/11/20 Michael mdavi...@tpg.com.au: 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 3 yet as not fully released and cannot comment on the other languages you mention Regards Mike so try Gambas 3 ;) -- 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
Re: [Gambas-user] About help and arrays and variables
2010/11/19 Zelimir Ikovic zelimir_iko...@yahoo.com: 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. How do you compare Gambas against those tools Regards it depend what you have to do with : Have you to port it to wondows or mac ... ? if yes choose freepascal or C++ if not ... is it a game or a program that need full cpu power ? if yes ... use C++ if not ... you can use Gambas . Gambas is (for an interpreted language) really fast, modern, logical, object oriented. The IDE is simple and really complete (in Gambas3 more :) ) The Lack of Gambas ? ... the Help is not really easy for a person that have never use any language. -- 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
Re: [Gambas-user] About help and arrays and variables
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 http://gambasdoc.org/help/lang/vardecl?show the syntax is [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Embedded array declaration ] AS Datatype [ = Expression ] and is mentioned the [ Embedded array declaration ]. 2) in the other hand in http://gambasdoc.org/help/lang/arraydecl?show the infos are very mixed up. It is not easy readable and understood by a beginner. In my book i follow the next way to describe these subjects. Variables Scope (local, global) Declaration of local vars Declaration of global vars Initialization Arrays Scope (local, global) Declaration of local arrays Declaration of global arrays Initialization Static arrays Dynamic arrays i propose to a similar way for the wiki so these subjects to be easy to read and understand and not to have all the info in one or two pages all together. You are right, and you can do the change if you want! -- 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
Re: [Gambas-user] About help and arrays and variables
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 the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. First, have you read the documentation page about Gambas object model? -- 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
Re: [Gambas-user] About help and arrays and variables
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 things as embedded arrays i didnt understand it well. in the next categorization we can add embedded arrays and array operator [...] Arrays Scope (local, global) Declaration of local arrays Declaration of global arrays Initialization Static arrays Dynamic arrays Embedded arrays Array operator [...] is there anything else about arrays? On Fri, 2010-11-19 at 01:37 +0100, Benoît Minisini wrote: 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 http://gambasdoc.org/help/lang/vardecl?show the syntax is [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Embedded array declaration ] AS Datatype [ = Expression ] and is mentioned the [ Embedded array declaration ]. 2) in the other hand in http://gambasdoc.org/help/lang/arraydecl?show the infos are very mixed up. It is not easy readable and understood by a beginner. In my book i follow the next way to describe these subjects. Variables Scope (local, global) Declaration of local vars Declaration of global vars Initialization Arrays Scope (local, global) Declaration of local arrays Declaration of global arrays Initialization Static arrays Dynamic arrays i propose to a similar way for the wiki so these subjects to be easy to read and understand and not to have all the info in one or two pages all together. You are right, and you can do the change if you want! -- 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
[Gambas-user] About help and arrays and variables
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 http://gambasdoc.org/help/lang/vardecl?show the syntax is [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Embedded array declaration ] AS Datatype [ = Expression ] and is mentioned the [ Embedded array declaration ]. 2) in the other hand in http://gambasdoc.org/help/lang/arraydecl?show the infos are very mixed up. It is not easy readable and understood by a beginner. In my book i follow the next way to describe these subjects. Variables Scope (local, global) Declaration of local vars Declaration of global vars Initialization Arrays Scope (local, global) Declaration of local arrays Declaration of global arrays Initialization Static arrays Dynamic arrays i propose to a similar way for the wiki so these subjects to be easy to read and understand and not to have all the info in one or two pages all together. -- Regards, Demosthenes Koptsis. -- 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
[Gambas-user] About help and arrays and variables
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 in 1)local array syntax with DIM keyword 2)and at variable syntax in Initialization section http://gambasdoc.org/help/lang/vardecl?show but is missing at Embedded arrays syntax. it is implied in variable section but the all description is separated and mixed up in many pages. -- Regards, Demosthenes Koptsis. -- 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
Re: [Gambas-user] About help and arrays and variables
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
Re: [Gambas-user] About help and arrays and variables
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 the TextBox1 as an array..? For example to enumerate its properties? i cant think what do you mean. If there is an example to demonstrate the differences. Please. On Wed, 2010-11-17 at 12:49 +0100, Benoît Minisini wrote: 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, -- Regards, Demosthenes Koptsis. -- 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