<div class="gmail_extra"><div class="gmail_quote">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 class="im">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>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>