[fpc-other] FPC Hypocrisy: overloaded L505

Marco van de Voort marcov at stack.nl
Tue Feb 26 21:21:27 CET 2008


> Florian Klaempfl wrote:
>  > > Skybuck Flying schrieb:
>  > > For records, I would use an extension field like:
>  > >
>  > > IP.Payload
>  > >
>  > > and
>  > >
>  > > UDP.Payload
>  > >
>  > > I would hardly call that obfuscation :)
>  >
>  > Having the same name for different things is always obfuscation.
> 
> 
> procedure test;
> procedure test(i: integer);
> procedure test(s: string);
> // oh shit, a STRING? Shortstring? or ANSISTRING!!

UTF16 Widestring on Tiburon (D2008 when it comes out) even.

(rest of rant skipped). 

You are partially right. If you encounter code that uses a "string" and its
implementation expects a certain type, please file a bug.


More information about the fpc-other mailing list