Trying to compile the following code (porting from MW Pascal)
                procC (procedure procD (var y: myObject));

the compiler is complaining because the ProcB is a nested procedure of ProcA.

Try defining it outside the object, if possible.
If not, define it as an object method(*)

I also suggest you do

Type TMyProc Procedure(var y:myObject);
(*) in case of an object method, I think you must add "Of Object" at the end of its declaration.

it makes all more readable on first instance.

Just my 2c

Cheers, A.

--
Alberto Narduzzi
ANSware Ltd.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to