method syntax

method syntax

Postby modicr » Wed Jan 04, 2006 6:30 pm

I'm porting large OO app from Clipper Fivewin.

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

Code: Select all  Expand view
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!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Postby R.F. » 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.
R.F.
 
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby modicr » Thu Jan 05, 2006 1: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!
User avatar
modicr
 
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia

Postby Antonio Linares » Thu Jan 05, 2006 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests