<div class="gmail_quote">On 4 May 2012 12:52, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 2012-05-04 10:38, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This syntax complains, but it's precisely the same expression I use to</blockquote></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
pass an argument in to a function, and it's fine there:<br>
   remedy\modules\hud.d(35):<u></u>Error: function remedy.hud.func without<br>
'this' cannot be const/immutable<br>
<br>
const ref Thing function() blah = &func;<br>
</blockquote>
<br></div>
Again this declares the variable const and not the return type. I'm not sure about the "ref" thing. I don't know if function pointers can return by reference, at least not the syntax.<br></blockquote><div>
<br></div><div>Ah, of course! I didn't spot that >_<</div><div>Thanks.</div><div><br></div><div>I suppose technically, 'ref' can lead to the same ambiguity. This must be the core of the problem. ref needs to be supported with parentheses?</div>
</div>