function Main() local oTest := Test() oTest:any( 123 ) ? oTest:any return nil
CLASS Test DATA any ENDCLASS
As you can see the Harbour classes engine is accepting the use of a DATA as a METHOD, even supplying it parameters, and it does not generates any error.
I do appreciate if you run it to confirm the bug. We should make Harbour generate an error in such case.
many thanks
Enrico Maria Giordano
unread,
Feb 5, 2024, 4:21:19 AMFeb 5
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Don't know if someone is able to fix this, without heavy changes and
compatibility issues. A redesign should rather target a strongly typed
alternative class system, if replaceable, then something like #include
"hbclass2.ch".