[fpc-pascal] Variant record types in Sockates unit.

Marco van de Voort marcov at stack.nl
Sun Oct 8 10:48:15 CEST 2006


> Alexander Todorov schrieb:
> > 
> > I have tried working with sockets using either of the fields (with or
> > without sin_ prefix) and of course it works? Why is it there I am
> > wondering?
> 
> Compatibility: e.g. posix and delphi might use different names for the 
> fields. So the unit supports posix as well as delphi style naming.

... this mostly to enable easy conversion of *nix C examples. This was one
of the lessons of the 1.0.x RTL, a non systematic naming really complicates
converting examples/code.

So the few renames that are still there (like the fp* prefix of functions
and always having p<x> and t<x>) are systematic.




More information about the fpc-pascal mailing list