>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/
_
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
>--- 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.
___
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
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
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
>
> >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
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
>> * 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,
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
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
11 matches
Mail list logo