[fpc-devel] Pure function Wiki page

Florian Klämpfl florian at freepascal.org
Sun Jul 8 21:41:51 CEST 2018


Am 08.07.2018 um 19:33 schrieb Marco van de Voort:
> In our previous episode, Florian Kl?mpfl said:
>>>
>>> It doesn't explain why you chose for a modifier rather than preprocessor
>>> switch.
>>
>> Why a preprocessor switch for something which applies to a particular function?
> 
> Maybe. But this kind of stuff will be rare, and is only an hint to speed up
> parsing. 

No. It marks a function as usable in constant expressions (like sin/ln whatever).

> I think having a directive is a bit too much honor.
> 
> Maybe it is time for an attribute system?
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
> 




More information about the fpc-devel mailing list