On Sun, 09 Nov 2008, Szak�ts Viktor wrote: > Hi Pritpal, >> What I can see from above is that ACCESS/ASSIGN methods >> can not be overloaded in another class is inherited from the current one. >> SETGET methods can be overloaded. This is a basic requirement to >> simulate Xbase++ class modal. >> Am I right ? > Sorry, I don't know if they can be overloaded.
There is no difference between SETGET method and two ACCESS ASSIGN methods redirected to the same function: METHOD mth SETGET and: ACCESS mth METHOD mth ASSIGN mth METHOD mth gives exactly the same class definition. Just like this code which also gives the same class definition. MESSAGE msg METHOD mth MESSAGE _msg METHOD mth ACCESS <msg> METHOD <mth> is the same as MESSAGE <msg> METHOD <mth> and ASSIGN <msg> METHOD <mth> is the same as MESSAGE _<msg> METHOD <mth> Each form allows overloading. There is no any limitation here. Harbour also allows to pass SETGET (ACCESS/ASSIGN) methods by reference just like real object variables: f( @o:msg ) but it does not work in xHarbour. best regards, Przemek _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
