[fpc-devel] Compile time functions
Sven Barth
pascaldragon at googlemail.com
Sat Jul 28 19:14:14 CEST 2018
J. Gareth Moreton <gareth at moreton-family.com> schrieb am Sa., 28. Juli
2018, 18:49:
> Another little progress update with implementing pure functions.
>
> 1. In my code (not submitted yet), the compiler now recognises and accepts
> the 'pure' directive. There are a number of other directives that it can't
> be used with ('noreturn' being one of them) and it can't be used on object
> methods.
>
You could allow it for static class methods which don't have a Self
argument and are essentially scoped ordinary routines.
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180728/b9962493/attachment.html>
More information about the fpc-devel
mailing list