<HTML>
<style> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }</style>I did wonder about that, but wasn't sure how it would affect things where inheritance is concerned. I dare ask, do you have an example of a class method that you would consider pure?<br>
<br>
And yes, object methods can't be pure because accessing the fields of the current object (Self) is internally dereferencing a pointer .<br>
<div><br>
</div><div>Gareth aka. Kit<br>
</div><div><br>
</div><div><br>
</div><span style="font-weight: bold;">On Sat 28/07/18 18:14 , "Sven Barth" pascaldragon@googlemail.com sent:<br>
</span><blockquote style="BORDER-LEFT: #F5F5F5 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT:0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr">J. Gareth Moreton <<a href="javascript:top.opencompose('gareth@moreton-family.com','','','')">gareth@moreton-family.com</a>> schrieb am Sa., 28. Juli 2018, 18:49:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Another little progress update with implementing pure functions.</div><div><br>
</div><div>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.</div></blockquote></div></div><div dir="auto"><br>
</div><div dir="auto">You could allow it for static class methods which don't have a Self argument and are essentially scoped ordinary routines. </div><div dir="auto"><br>
</div>
<div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>
</blockquote></HTML>