[fpc-devel] how to get same pthreads code to compile between Linux and FreeBSD

Marco van de Voort marcov at stack.nl
Sun Feb 3 14:16:33 CET 2013


In our previous episode, Sven Barth said:
> In this case the return type of "@s" will be "^sem_t" instead of 
> "Pointer" and then the compiler will find the correct method.
> 
> Now one might nevertheless ask the question why the compiler considers 
> the var variant with an "@s" valid at all? Maybe this is a bug indeed...

Afaik Delphi allows that too since D4. It was one of the things 1.0.x
couldn't do, but 1.9+ could.



More information about the fpc-devel mailing list