Ontem eu perdi meio dia com um problema e resolvi reproduzi-lo abaixo para que alguém não perca o mesmo tempo que eu perdi.
Código: Selecionar todos
#include "hbclass.ch"
FUNCTION MAIN()
LOCAL c := myClass():New()
? c:Test()
RETURN NIL
***
CLASS myClass
DATA test INIT NIL
METHOD test()
METHOD NEW() CONSTRUCTOR
END CLASS
METHOD NEW()
::test := 10
::test()
RETURN Self
METHOD Test()
? "Inside test"
? ::test
RETURN Self
Na linha onde tem o comando
Código: Selecionar todos
? ::teste
Ele deveria chamar o método se fosse assim :
Código: Selecionar todos
? ::test()
Uso o :
Harbour 3.2.0dev (r1507030922)
Copyright (c) 1999-2015, http://harbour-project.org/


