[fpc-devel] Parameters must match exactly?

Florian Klaempfl florian at freepascal.org
Tue May 18 22:21:12 CEST 2010


Vinzent Höfler schrieb:
> Florian Klaempfl <florian at freepascal.org>:
> 
>> Vinzent Höfler schrieb:
>>> Florian Klaempfl <florian at freepascal.org>:
>> With a function result one can easily use the as-operator.
> 
> Yes, and then instead of doing the "undefined behaviour" thingie, it
> would cause an RTE instead. Not much of an improvement, I'd say.

It's the important difference between C and Pascal: "undefined
behaviour" against proper error message.

> 
>> I thought such simple things are clear without additional notes.
> 
> And I thought, that there's no point in giving compilable
> alternatives when they are still wrong. Probably that's where the
> confusion came from.

At least we try to avoid it to make it people too easy to shoot themself
into the foot.



More information about the fpc-devel mailing list