[fpc-devel] Parameters must match exactly?

Henry Vermaak henry.vermaak at gmail.com
Mon May 17 23:43:57 CEST 2010


On 17 May 2010 21:59, "Vinzent Höfler" <JeLlyFish.software at gmx.net> wrote:
> Florian Klaempfl <florian at freepascal.org>:
>
>> Graeme Geldenhuys schrieb:
>>
>> > This compiler change will play havoc on the Simple Factory Method design
>> > pattern as well - a base class is used as the parameter type, but
>> > descendants are created and passed back. This is a very common case and
>> > used a lot.
>>
>> ... and one uses normally a function and not a var/out parameter.
>
> And return the error code in an out parameter instead? Great idea. So readable. So much in the spirit of Pascal.
>
> Any more such suggestions on how to write code? Where can one download "Florian's Style Guide" - so one will not do that mistake again?
>

Perhaps you should establish a technical argument instead of wasting
two paragraphs on childish sarcasm?

Henry



More information about the fpc-devel mailing list