[fpc-devel] Pure function Wiki page

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon Jul 9 00:38:47 CEST 2018


On Sun, Jul 8, 2018 at 5:43 PM, Thorsten Engler <thorsten.engler at gmx.net>
wrote:

> People keep talking about keywords. As shown in the examples, pure is not
> a keyword. It's a context-sensitive directive. This is already wrongly
> stated in the proposal itself (so people can be excused for picking up on
> the use of the term "keyword" in the proposal) and it should be fixed (in
> the proposal).
>
> And it's not redundant. You are telling the compiler: I want this function
> to be pure. Please tell me if I made a mistake.
>

If I put a function call into a constant expression, doesn't it already
tell the compiler "I want this function to be pure. Please tell me if I
made a mistake"?

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180708/58f35e29/attachment.html>


More information about the fpc-devel mailing list