On Thu, Jun 16, 2011 at 6:07 AM, Kagamin <span dir="ltr"><spam@here.lot></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Walter Bright Wrote:<br>
<br>
> <a href="http://drdobbs.com/blogs/tools/230700070" target="_blank">http://drdobbs.com/blogs/tools/230700070</a><br>
<br>
</div>import std.stdio;<br>
<br>
int square_debug(int x)<br>
{<br>
    writefln("square(%d)", x);<br>
    return x * x;<br>
}<br>
<br>
pure alias int function(int) fp_t;<br>
<br>
pure int square(int x)<br>
{<br>
    auto fp = cast(fp_t)&square_debug;<br>
    return (*fp)(x); // dereference???<br>
}<br>
</blockquote></div><br><div>Yes, that's correct.</div>