[fpc-devel] Compile time functions
Sven Barth
pascaldragon at googlemail.com
Sat Jul 21 02:08:45 CEST 2018
Martok <listbox at martoks-place.de> schrieb am Fr., 20. Juli 2018, 23:20:
>
> What do you think?
>
The main problem is that not all functions that would be eligible for your
approach are also declared as inline thus their node trees would not be
stored inside the PPU and thus you could not work with them.
Additional benefit of the "pure" modifier: the compiler can check once the
method has been parsed whether it's pure or not and can thus error out in
the latter case.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180721/1400be00/attachment.html>
More information about the fpc-devel
mailing list