On 05/02/12 06:34, Jussi Lahtinen wrote:
>> thats what i want to know it seems that public variables are copy when a
>> class is inherited
>> and the value they where when you inherit them is only used from then on
>>
>> i made a test app i must be doing something wrong
>> this app just uses intege
> thats what i want to know it seems that public variables are copy when a
> class is inherited
> and the value they where when you inherit them is only used from then on
>
> i made a test app i must be doing something wrong
> this app just uses integers
>
There are two objects, myc1 and myc2.
And
cular references.
If you deliberately program this way, you'll get a headache.
Looks like it's starting.
-- Original Message ---
From: Shane Powell
To: nand...@nothingsimple.com, mailing list for gambas users
Sent: Sat, 04 Feb 2012 19:31:27 +1100
Subject: Re: [Gambas-user] inher
I think you need to send project which demonstrates this problem.
Maybe Gambas should raise error.
Jussi
On Sat, Feb 4, 2012 at 14:42, Jussi Lahtinen wrote:
> Seems like circular reference.
> Class2 inherits array of it self, which then inherits array of it self,
> which ...
>
> Jussi
>
>
>
>
Seems like circular reference.
Class2 inherits array of it self, which then inherits array of it self,
which ...
Jussi
On Sat, Feb 4, 2012 at 03:05, Shane Powell wrote:
>
> I have this in my program
>
> class 1
> public array of class 2
>
> class 2
> inherits class 1
> access array
1100
> Subject: Re: [Gambas-user] inheritance problems
>
>> On 04/02/12 15:57, nando wrote:
>>> How can it be empty AND have elements in it?
>>>
>>>
>>> -- Original Message ---
>>> From: Shane Powell
>>> To: mailing list
PUBLIC myint is only exactly one variable.
It's public.
-- Original Message ---
From: Shane Powell
To: nand...@nothingsimple.com, mailing list for gambas users
Sent: Sat, 04 Feb 2012 17:16:17 +1100
Subject: Re: [Gambas-user] inheritance problems
> On 04/02/12 15:5
On 04/02/12 15:57, nando wrote:
How can it be empty AND have elements in it?
-- Original Message ---
From: Shane Powell
To: mailing list for gambas users
Sent: Sat, 04 Feb 2012 12:05:24 +1100
Subject: [Gambas-user] inheritance problems
I have this in my program
class 1
How can it be empty AND have elements in it?
-- Original Message ---
From: Shane Powell
To: mailing list for gambas users
Sent: Sat, 04 Feb 2012 12:05:24 +1100
Subject: [Gambas-user] inheritance problems
> I have this in my program
>
> class 1
>public arra
I have this in my program
class 1
public array of class 2
class 2
inherits class 1
access array of class 2 in class 1
but array is empty but i know it has elements in it
what am i doing wrong ?
--
Tr
10 matches
Mail list logo