https://issues.dlang.org/show_bug.cgi?id=16365

--- Comment #1 from [email protected] ---
(In reply to ag0aep6g from comment #0)
>     S s;
>     void delegate(immutable int*, int*) @safe d = &s.f1;
>     void function(immutable int*, int*) @safe f = d.funcptr; /* uh-oh */

Can also use `f = &S.f1;` to obtain the unsafe function pointer.

--

Reply via email to