Hello,
Does any body knows about "class method" support in Harbour 2.1.0dev?
I was migrating from xHarbour 0.99 to Harbour 2.1.0dev and my
application breaks, apparently caused by attempt to access a class
method.
The error message is "MESSAGE NOT FOUND: FOO:BAR" where BAR is the
class method of class FOO. The example class is:
CREATE CLASS Foo
EXPORT:
CLASS METHOD initClass
CLASS METHOD bar
END CLASS
METHOD initClass() CLASS Foo
RETURN ( self )
METHOD bar() CLASS Foo
RETURN ( "Hello" )
And in another source file, I'm accessing bar method like this:
? Foo():bar()
Note that this same code works in xHarbour 0.99.
Looking at the PPO, I realize that the declaration of method bar() turns to:
static FUNCTION Foo_bar() ...
The "static" confused me. If the procedure/function is static that one
can't access that procedure or function from outside module. Isn't?
Any help is very appreciated
Regards,
--
Daniel Gonçalves
Base4 Sistemas Ltda.
[www.base4.com.br]
[twitter.com/spanazzi]
_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users