[fpc-devel] Pure function Wiki page

Ryan Joseph ryan at thealchemistguild.com
Sun Jul 8 18:58:11 CEST 2018



> On Jul 8, 2018, at 10:55 AM, Marco van de Voort <marcov at stack.nl> wrote:
> 
> It doesn't explain why you chose for a modifier rather than preprocessor
> switch. 

Performance aside I think it’s useful to mark a function as “pure” so you can guarantee it’s not messing with global state. I’m sure I could have used that at some point over the years.

Regards,
	Ryan Joseph




More information about the fpc-devel mailing list