Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-06

Re: Problems with newer snapshots

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to Unknown author: i have some problems to compile the graphix library with new snapshots of the 1.05 branch.
Show quoted text 8 lines
I got error messages like that: Error: Incompatible types: got "VOID" expected "<procedure variable type of procedure();>" The variables are function pointer to assembler functions. How can i make it work again ???

Add an "@" before the procedure. This was changed recently to make the compiler consistent with both itself and the documentation.

In TP you have:

procvar(para1,para2,...) = call procedure (or just "procvar" if it has no parameters)
@procvar = contents of procvar
@@procvar = address of procvar
procvar := procedure/function = assign address of procedure/function to procvar

In FPC you have:

procvar(para1,para2,...) = call procedure (or just "procvar()" if it has no parameters)
procvar = contents of procvar
@procvar = address of procvar
procvar := @ assign address of procedure/function to procvar

I think the FPC syntax is more logical.

Jonas

Unknown author

Hello,

i have some problems to compile the graphix library with new snapshots of the 1.05 branch.

I got error messages like that:
Error: Incompatible types: got "VOID" expected "<procedure variable type of procedure();>"

The variables are function pointer to assembler functions.

How can i make it work again ???

regards

Dirk Verwiebe