Hi Vlad,
Neither Cl*pper nor [x]Harbour support code were variables
and methods use the same names. In both cases when you
access variable and call method the same PCODE it generated.
Just simply in Clipper:
? o:cargo
and
? o:cargo()
means the same code and for compatibility we have to make
the same. I keep in mind modification which extends Harbour
and adds support for such functionality in two modes chose
by compiler switch during PRG code compilation:
1 - suggested type of message
2 - strict type of message
The first one will try to keep Cl*pper compatibility so for
code like:
? o:cargo
it first look for instance variable then for message and for
code like:
? o:cargo
it first look for message and then instance variable.
The second one will force strict access but to introduce it
it's necessary to well document what is method and what
instance variable in existing classes and it was never clear
in Cl*pper, i.e.
:classH or :classH()
or
:className or rahter :className()
and we inherited this ambiguity with the Cl*pper compatibility.
Anyhow this modification has rather small priority on my TODO
list.
best regards,
Przemek
> --
> You received this message because you are subscribed to the Google Groups "Harbour Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
harbour-deve...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.