On 22 Oct 2003 at 13:59, Frank Heckenbach wrote:
BP seems to allow overriding a public method with a private one (and vice versa). Does this seem reasonable?
What do Delphi and other compilers do?
Same as BP.
[...]
Under BP, this says:
b.p a.p
Same result from Delphi (up to version 7.0), Virtual Pascal, Free Pascal, and TMT Pascal.
What does it mean actually? It means that `b' has *two* methods called `p'. Within the unit, one of them shadows the other, and outside of the unit, the first one is hidden (or non-existent because not exported), and the second one becomes visible.
Seems so.
That's crazy, isn't it?
Not sure ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/