August 03, 2020 [Issue 21105] New: Casting from a function pointer to a delegate | ||||
|---|---|---|---|---|
| ||||
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: nobody@puremagic.com Reporter: porton@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. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply