Sign in Join

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

Mailing lists / fpc-pascal / 2000-11

"pascal;" modifier

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Sebastian Schuberth

Hi guys!

I've tested the "pascal;" modifier and came across some strange behaviour (bug?): The external Function I want to declare "pascal;" is embedded into a unit. When I use "pascal;" only within the implementation part, the compiler compalins that the function definitions do not match. But when I use "pascal;" within the interface part, too, the compiler claims "pascal;" is not allowd in interface parts.

BTW: When I use "cdecl;" (just for testing purpose) instead, it compiles.

Sebastian Schuberth
Florian Klaempfl
to Sebastian Schuberth
you wrote 11 lines
Hi guys! I've tested the "pascal;" modifier and came across some strange behaviour (bug?): The external Function I want to declare "pascal;" is embedded into a unit. When I use "pascal;" only within the implementation part, the compiler compalins that the function definitions do not match. But when I use "pascal;" within the interface part, too, the compiler claims "pascal;" is not allowd in interface parts. BTW: When I use "cdecl;" (just for testing purpose) instead, it compiles.

It will be fixed in the next snapshot.