[fpc-devel] Pure function development discussion
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Sun Aug 12 16:28:20 CEST 2018
On Sat, Aug 11, 2018 at 8:50 PM J. Gareth Moreton <gareth at moreton-family.com>
wrote:
> How and when is the constant defined? Should such constructs be disallowed
> and constants only allowed to be declared in other units that use the unit
> that contains the pure functions in its interface section? What would be
> the ideal and cleanest behaviour?
>
> Why don't you limit the purity only for expressions explicitly defined at
"const" section?
If the function call is found at any place other than "const" section, the
function would be executed as a regular run-time function.
Pretty clean.
thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180812/859203ef/attachment.html>
More information about the fpc-devel
mailing list