Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 12:37, schrieb Darius Blaszyk: Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
> Am 08.05.2013 11:40, schrieb Darius Blaszyk: > > Am 08.05.2013 11:20, schrieb Darius Blaszyk: > I'm working on a glut app but I keep on getting the message: Error: Can't > assign local procedure/function to procedure variable The error is at this > line: glutDisplayFunc(@redrawfunc); And th

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (w

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
> Am 08.05.2013 11:20, schrieb Darius Blaszyk: > >> I'm working on a glut app but I keep on getting the message: Error: Can't >> assign local procedure/function to procedure variable The error is at this >> line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in >> the same

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc file) is

[fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc file) is declared as: procedure redrawfunc; cdecl; I

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread John Coppens
On Fri, 07 Jul 2006 20:14:13 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > or compile your code in tp mode (fpc -h for help about command line > parameters). > > Vincent > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lis

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread Vincent Snijders
Marc Santhoff wrote: Am Freitag, den 07.07.2006, 14:40 -0300 schrieb John Coppens: PrevProc: ShTableLine = DummyShLine; Use PrevProc: ShTableLine = @DummyShLine; to tell fpc it's an address and no function call. or compile your code in tp mode (fpc -h for help about command line

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread Marc Santhoff
Am Freitag, den 07.07.2006, 14:40 -0300 schrieb John Coppens: > PrevProc: ShTableLine = DummyShLine; Use PrevProc: ShTableLine = @DummyShLine; to tell fpc it's an address and no function call. Have fun, Marc ___ fpc-pascal maillist - fpc-

[fpc-pascal] Strange error message?

2006-07-07 Thread John Coppens
Hi... I was trying to compile some old TP code and got a strange error message: program test_reg; type ShTableLine= procedure(n: integer); procedure DummyShLine(Nr: integer); begin end; {DummyShLine} procedure UseIt; const PrevProc: ShTableLine = DummyShLine; begin end; be