At 9:24 +0800 27/6/05, Peter N Lewis wrote:
Currently it is giving me "error: undeclared identifier `MethodName'" when I try to call a method of the parent object (the parent object is all defined in one unit, and the child all in another unit). I will try to simplify the code causing the problem down to a simple test case.
I tracked this down to a problem with my source - MW supports private, but only for variables, and does not support public, so the code looked like:
type o = object // public pub: integer; private priv: integer; // public procedure PubMethod; // private procedure PrivMethod; end;
GPC honours the private, and so the methods were all hidden from the child object.
Given the very poor level of implementation of private/public in Mac Pascals, I would doubt this is worth GPC bothering to be compatible with.
Enjoy, Peter.