As an additional note - apologies to those who responded to me directly,
but for some reason, GMail doesn't like e-mails coming from my domain
name, so I have to use my own GMail account, watercran...@gmail.com to
respond.
Kit
On 02/10/2023 18:21, J. Gareth Moreton via fpc-devel wrote:
No mod
No mode switch - just apply the changes from my branch over at
https://gitlab.com/CuriousKit/optimisations/-/tree/pure?ref_type=heads.
To mark a function as pure, append the directive "pure" after the
function definition, like you would with "virtual" or "inline", say.
Given it's a Free Pascal
On 29.09.23 21:28, J. Gareth Moreton via fpc-devel wrote:
[...] As the examples imply, to mark as a function as pure, simply
use the new "pure" directive.
When is it available? Is there a modeswitch?
Mattias
___
fpc-devel maillist - fpc-devel@l
Hi everyone,
This has been something that's been in development for some time now,
and I invite other Free Pascal users and developers to test the new
feature... pure functions. Its closest equivalent in C++ would be
"constexpr".
A pure function has no side-effects - it doesn't affect the m