R: Re: [fpc-pascal] Mac osx callback functions parameters: wrong values in 386 mode.

2010-09-07 Thread fpanas...@tiscali.it
Thank you very much for your help. Regards Francesco Messaggio originale Da: jonas.ma...@elis.ugent.be Data: 06/09/2010 18.13 A: "fpanas...@tiscali.it", "FPC-Pascal users discussions" Ogg: Re: [fpc-pascal] Mac osx callback functions parameters: wrong values in 3

[fpc-pascal] Mac osx callback functions parameters: wrong values in 386 mode.

2010-09-06 Thread fpanas...@tiscali.it
Using control callback function with a control (a button) apparently results in wrong parameter values when compiling to 386 (values are correct compiling to ppc). The attached case refers to a callback procedure myActionProc (lControlRef: ControlRef; PartCode: ControlPartCode) applied to a pu

[fpc-pascal] Mac OSX callback functions parameters: wrong values for 386 mode.

2010-09-06 Thread fpanas...@tiscali.it
Using control callback function with a control (a button) apparently results in wrong parameter values when compiling to 386 (values arecorrect compiling to ppc). The attached case refers to a callback procedure myActionProc (lControlRef: ControlRef; PartCode: ControlPartCode) applied to a pus

[fpc-pascal] Local procedures as actual procedure parameter in macpas mode

2010-08-24 Thread fpanas...@tiscali.it
Trying to compile the following code (porting from MW Pascal) type myObject = object procA (x: integer); procC (procedure procD (var y: myObject)); end; procedure myObject. procC (procedure procD (var y: myObject)); begin