Como faria isso dar certo sem ... ou em xharbour ?
Código: Selecionar todos
#include "hbclass.ch"
PROCEDURE Main
LOCAL oItem
oItem := Test():New()
oItem:One()
oItem:One( Nil )
oItem:Two()
oItem:Two( Nil )
Inkey(0)
RETURN
CREATE CLASS Test
METHOD One( ... ) INLINE ::Two( ... )
METHOD Two( x )
ENDCLASS
METHOD Two( x ) Class test
? PCount(), x
RETURN Nil
0 NIL
1 Nil
0 Nil
1 Nil
Porque ?
Porque eventualmente quero atribuir NIL, então testar Nil não serve, só contando parâmetros mesmo.
De outra forma, sem o ..., seria impossível.
