Re: Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-23 Thread toni...@fwi
>Based on this email thread, I will change these modules to 'method >procedure' Hi April. Thanks a lot. Regards, Toninho. __ Faça ligações para outros computadores com o novo Yahoo! Messenger http://br.beta.messenger.yahoo.com/ _

Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-22 Thread April White
toni...@fwi wrote: METHOD PROCEDURE Test( c ) CLASS Hello ? c RETURN Based on this email thread, I will change these modules to 'method procedure' April FYI, the new hbextern will ignore and report, at the end of the output file, those 'class procedures' it finds -- Wanted: mean

Re: Re: Re: Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-22 Thread toni...@fwi
>--- test.prg >#include "hbclass.ch" > >PROCEDURE MAIN() > Hello():Test( "hello world" ) > RETURN > >CREATE CLASS Hello > METHOD Test( c ) >END CLASS > >METHOD PROCEDURE Test( c ) CLASS Hello > ? c > RETURN >--- Thanks Viktor. Regards, Toninho. ___

Re: Re: Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-21 Thread Viktor Szakáts
Found this: --- 2006-10-04 02:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) ... * harbour/utils/hbtest/rt_class.prg * use: METHOD PROCEDURE ... CALSS ... instead of: PROCEDURE ... CALSS ... The first version is preferable syntax. ... --- --- test.prg #include "hbclass.c

Re: Re: Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-21 Thread toni...@fwi
Hi Viktor >This is good, but in this case IMO METHOD declaration and >definition should use some sort of consistent syntax. > >Declaring as METHOD and implementing as PROCEDURE is >very sloppy. I 100% agree with you but IIRC this problem was discussed in past. I don't remember why we choice for M

Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-20 Thread Viktor Szakáts
Hi April, Before you revert, pls lets check what is the proper syntax for PROCEDURE METHODs and change them to that. If we find out, maybe we can do some optimizations in existing classes by converting RETURN NILs to PROC METHODs. Brgds, Viktor On Sat, Jun 20, 2009 at 9:31 PM, April White wrote

Re: Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-20 Thread Viktor Szakáts
> > >Is RETURN SELF correct? Shouldn't it be RETURN NIL? > > +1... > > Some years ago: > > 2003-07-07 11:12 UTC-0300 Antonio Carlos Pantaglione > * include/hbclass.ch >+ Added support for PROCEDURE CLASS syntax. > > I changed hbclass to support procedures for optimize pourpose. IMO > only N

Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-20 Thread April White
toni...@fwi wrote: * contrib\xhb\hblog.prg * PROCEDURE Open() CLASS HB_Logger -> METHOD returning Self * PROCEDURE Close() CLASS HB_Logger -> METHOD returning Self * PROCEDURE Log( cMessage, nPriority ) CLASS HB_Logger -> METHOD returning Self * PROCEDURE Log( nStyle, cMessage, cNam

Re: Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-20 Thread toni...@fwi
>>  * contrib\xhb\hblog.prg >>    * PROCEDURE Open() CLASS HB_Logger -> METHOD returning Self >>    * PROCEDURE Close() CLASS HB_Logger -> METHOD returning Self >>    * PROCEDURE Log( cMessage, nPriority ) CLASS HB_Logger -> METHOD >> returning Self >>    * PROCEDURE Log( nStyle, cMessage, cName,

Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-19 Thread April White
Lorenzo Fiorini wrote: On Fri, Jun 19, 2009 at 4:53 PM, wrote Revision: 11434 http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11434&view=rev Author: april Date: 2009-06-19 14:53:40 + (Fri, 19 Jun 2009) Log Message: --- * contrib\xhb\hblog.prg * P

Re: [Harbour] SF.net SVN: harbour-project:[11434] trunk/harbour

2009-06-19 Thread Lorenzo Fiorini
On Fri, Jun 19, 2009 at 4:53 PM, wrote: > Revision: 11434 >           > http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11434&view=rev > Author:   april > Date:     2009-06-19 14:53:40 + (Fri, 19 Jun 2009) > > Log Message: > --- >  * contrib\xhb\hblog.prg >    * PROCED