>
> Neither Harbour nor xHarbour support CLASS METHODs.
> In xHarbour they are translated to normal method and in Harbour
> they are ignored.
> If you want to replicate xHarbour behavior using Harbour add this
> PP rule to your code:
>
>   #xcommand CLASS METHOD <*params*>  => METHOD <params>
>

Hi! Thank you. Your solution works, but...
I came from Clipper/Class(y) and Java tecnologies. I code for example:

CREATE CLASS Foo INHERIT Bar, Hat
   EXPORT:
      METHOD init CONSTRUCTOR
   ...

METHOD init( x, y, z )
   ::Bar:init( x, y ) // initialize the super class Bar
   ::Hat:init() // initialize the super class Hat
   ...

This doesn't work anymore. The run-time says that there's no exported
method new() in the code that uses class Foo, for example. I've a lot
(i mean it) of legacy code that will not work. Is there any solution
or a reference?

Thanks in advance!

-- 
Daniel Gonçalves
Base4 Sistemas Ltda.
[www.base4.com.br]
[twitter.com/spanazzi]
_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users

Reply via email to