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: [email protected]
Reporter: [email protected]
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.
--