Peter N Lewis wrote:
At 11:39 PM +0200 25/7/03, Frank Heckenbach wrote:
However, I can't find it in the Turbo Pascal 6.0 Programmer's Guide, nor can I remember it from my BP days (which is more than a decade ago).
BP 7.0 has `inherited' (not sure about 6.0). It can be used only within method definitions of derived object types, and `inherited Foo' means `Bar.Foo' where `Bar' is the parent of the current method's object type.
I assume that if Bar does not define Foo, but Bar's parent defines Foo, that is still ok.
Yes. In this case, Bar inherits Foo from its parent, so `Bar.Foo' will also work. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707