https://issues.dlang.org/show_bug.cgi?id=21105
Issue ID: 21105 Summary: Casting from a function pointer to a delegate Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dlang.org Assignee: nob...@puremagic.com Reporter: por...@narod.ru Please add the following features: - explicit casting from a function pointer to the corresponding delegate (with the obvious semantics) - implicit casting from a function pointer to the corresponding delegate - `cast(delegate) ...` that would also do this cast. The state would be set to null by such casts. --