> 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
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
>
> 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
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
> 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
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
---
> >>
> >> 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
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
> 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
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
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
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
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
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
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
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
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.
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
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
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
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
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
>
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
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
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
> 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
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
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,
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
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
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"
>
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
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
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
> 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?
> 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
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
> 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
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
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
40 matches
Mail list logo