<div class="gmail_extra"><div class="gmail_quote">On 5 May 2012 02:32, Manu <span dir="ltr"><<a href="mailto:turkeyman@gmail.com" target="_blank">turkeyman@gmail.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="gmail_extra"><div class="gmail_quote"><div><div class="h5">On 4 May 2012 21:51, Artur Skawina <span dir="ltr"><<a href="mailto:art.08.09@gmail.com" target="_blank">art.08.09@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 05/04/12 15:57, Manu wrote:<br>
> Yeah I really hate this too. I'd like to see const(T) strictly enforced, considering the potential for ambiguity in other situations.<br>
><br>
> But I'm still stuck! :(<br>
> How can I do what I need to do?<br>
<br>
</div>If 'auto' is not an option:<br>
<br>
   alias ref const(S) function() FT;<br>
   FT fp;<br>
<br>
(it's needed for things like 'extern (C)' too)<br></blockquote><div><br></div></div></div><div>Huzzah! This is indeed the solution! I haven't seen another solution that works. now I just need to make sure I generate a unique name for the alias...</div>

<div><br></div><div>I don't think this is needed for extern (C), I declare extern (C) function pointers all the time without any trick..?</div></div></div>
</blockquote></div><br></div><div class="gmail_extra">That said, I don't think it's a 'solution', I'm pretty sure there's a bug somewhere in this thread, but I'm not sure how the syntax should look... the problem seems rather complicated when considering declaring functions, declaring variables, and declaring function arguments which all overload the meaning of these keywords...</div>