<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Jul 8, 2018 at 1:01 PM, Florian Klämpfl <span dir="ltr"><<a href="mailto:florian@freepascal.org" target="_blank">florian@freepascal.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br></span>
No. Because pure is part of the function header and tells users "you can use this function with constant arguments in constant expressions and this won't change without notification". If the compiler determines by itself if a function is pure or not, it might even depend on the compiler version if a function is detected as pure or not. </blockquote><div><br></div><div>Isn't it similar to "overload" keyword?</div><div>delphi mode required "overload" keyword for functions, while for objfpc mode, it's up to the compiler.</div><div><br></div><div>(and yes, there were some issues with the compiler failing to determine what overload function to call from version to version)</div><div><br></div><div>thanks,</div><div>Dmitry</div><div> </div></div></div></div>