The problem was that `self' was not a pointer but a reference (like for BP objects). The following should fix it:
Yep, that seems to solve the problem.
Thanks!
Currently I'm going through about 250 units getting them all to compile under GPC.
The biggest challenges I'm facing are:
Lack of univ parameter support (I see Sun Workshop Compiler docs http://www.ictp.trieste.it/~manuals/programming/sun/pascal/lang_ref/ref_proghead.doc.html#742, so it is not just Mac Pascals).
Lack of {$unused( param )} directive - needs to be commended out with ifdef __GPC__ for each one (and then I don't understand why GPC is not itself warning about the unused parameters...)
Lexical vs Syntactical case difference warnings (CW Pascal complains when you refer to something with a different case to what it was defined as, GPC complains when two identifiers have different case, even if they are referring to different things (such as a function name and a record field).
Lack of short string support (ironically, this would be the hardest of the three to implement in GPC, and is the one causing the least problems).
Of course, I still have to actually *run* the code when I eventually finish getting them all to compile - but I'm sure that will not be a problem ;-) Enjoy, Peter.