[fpc-pascal] THandle in code that must compile also with Delphi

Marco van de Voort marcov at stack.nl
Thu Mar 20 15:34:04 CET 2014


In our previous episode, Mark Morgan Lloyd said:
> > IMHO the universal handle (for e.g. IPC related handles and file handles) is
> > not a portable concept to begin with.
> 
> I think the concept of a handle as an opaque type is universal. What 
> isn't safe is any assumption of consistent behaviour, e.g. that select() 
> may be applied to any type of handle or that a program's stdin/stdout 
> might in practice be implemented by a socket.

Before that, I don't even think sizeof(any handle)=constant for a given
target is a valid assumption.



More information about the fpc-pascal mailing list