Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #1776

Re: Subclassing

From Massimo Bighelli <info@arcasistemi.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Subclassing
Date 2011-08-01 14:11 +0200
Organization ARCA Sistemi S.r.l.
Message-ID <j1655r$25i$1@speranza.aioe.org> (permalink)
References <4e35ac5f$0$11496$a729d347@news.telepac.pt> <j14emh$2c1$1@speranza.aioe.org> <4e35c1da$0$11500$a729d347@news.telepac.pt>

Show all headers | View raw


yes, and this is correct IMO.
Now you Init correctly ClassVar2, and then you transfer the ClassObject 
to Var2

 > Var2 := ClassVar2{self}

the next line is a mere pointer assignement

 > Var1 := Var2

IMO all this is correct, but the previous version wasn't.

:-)

Massimo



Il 31/07/2011 22:57, Carlos Rocha ha scritto:
> Yes, that's my problem, but this seems to work:
>
> //---------------------------
> Class ChildB inherit ChildA
> export Var2 as ClassVar2
>
> //---------------------------------
> method Init(oOwner) class ChildB
> super:Init(oOwner)
>
> Var2 := ClassVar2{self}
> Var1 := Var2
>
> return self
> //-------------------------------------
>
>
>
>>
>>> self:Var1 := ClassVar2{self} // This works fine
>>
>> I dont beleve this works fine for your porpouse...
>> IMO here you loose the ClassVar2 exported var.
>>
>> Massimo
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Subclassing Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-07-31 20:25 +0100
  Re: Subclassing Massimo Bighelli <info@arcasistemi.it> - 2011-07-31 22:41 +0200
    Re: Subclassing Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-07-31 21:57 +0100
      Re: Subclassing Massimo Bighelli <info@arcasistemi.it> - 2011-08-01 14:11 +0200

csiph-web