FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour method syntax
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
method syntax
Posted: Wed Jan 04, 2006 06:30 PM
I'm porting large OO app from Clipper Fivewin.

Is it possible to declare several methods in just one line,
like this:

CLASS T3DOBJ

   DATA   aVertex
   DATA   aFaces

   METHOD New() CONSTRUCTOR

   METHOD AddVertex(), Paint()
//    METHOD Paint()

ENDCLASS


At the moment, harbour compiler does not like
this (Syntax error: parse error at ...)

Thanks, Roman
© I'm not patented!
Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
method syntax
Posted: Thu Jan 05, 2006 12:57 AM

No, if you check the hbclass.ch header file, you will notice that METHOD is a single line directive.

Saludos

R.F.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
method syntax
Posted: Thu Jan 05, 2006 12:41 PM

Roman,

You may modify Harbour hbclass.ch and implement it for you.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 207
Joined: Fri Oct 07, 2005 07:58 AM
method syntax
Posted: Thu Jan 05, 2006 01:31 PM

I think it will be faster if I manually change source of our modules.

I looked into objects.ch to see how you implemented "method" in FW
for clipper and it seems quite complicated.

Roman

© I'm not patented!
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
method syntax
Posted: Thu Jan 05, 2006 04:12 PM

Roman,

FWH does not use objects.ch, just hbclass.ch which it is much more simple.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion