<div dir="ltr"><div dir="ltr">On Tue, Nov 10, 2020 at 8:50 PM Max Samukha via Digitalmars-d-learn <<a href="mailto:digitalmars-d-learn@puremagic.com">digitalmars-d-learn@puremagic.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday, 10 November 2020 at 14:36:04 UTC, Steven <br>
Schveighoffer wrote:<br>
<br>
>> <br>
>> Is there a way to get a pointer to a non-static nested <br>
>> function?<br>
><br>
> I don't think you can do it at compile time. You can at runtime <br>
> by accessing the funcptr of the delegate.<br>
><br>
> -Steve<br>
<br>
Thanks for the reply. I will post the issue to bugzilla.<br></blockquote><div><br></div><div>Why?</div><div>It works for me</div><div><br></div>import std.stdio;<br>void main() {<br>    void foo() {<br>        writeln("It works as expected");<br>    }<br>    enum pfoo = &foo;<br>    <br>    void delegate() dg = pfoo;<br>    dg();<br>    <br><div>} </div></div></div>