marcov@stack.nl:
: In gmane.comp.compilers.gpc, you wrote: : : Gale's msg reminded me of more Delphi syntax regarding forward defines. It is not : directly related to Gales remark (I also think that inheriting from forward defined : classes/objects shouldn't be possible, and so does Borland: "class not completely defined yet"). : : The detail I forgot is that inheritance info must match, so: : : Type : ta = class (SomeObject); // define forward : : tb = class : procedure dosomethingwith(a : ta); // I now have inheritance info about ta here. : end; : : ta = class (someobject) : x : integer; : end; : : : and not e.g. : : Type : ta = class; // define forward. However this is effectively class(tobject), inheriting from the base object : : tb = class : procedure dosomethingwith(a : ta); // I now have inheritance info about ta here. : end; : : ta = class (someobject) // ta already defined error here. : x : integer; : end;