[fpc-devel] Fwd: While - Otherwise Statement

Sven Barth pascaldragon at googlemail.com
Mon Oct 12 23:15:52 CEST 2015


Am 12.10.2015 21:43 schrieb "Martin Frb" <lazarus at mfriebe.de>:
>> The only drawback is that "cond" is calculated twice instead of once
>> before the actual loop body -- not all will be happy.. ;-)
>>
> Thats an issue for the optimizer. no need to change the language.

The optimizer might not be able to do anything if the expression is a
function call that can not be inlined.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151012/0a428072/attachment.html>


More information about the fpc-devel mailing list