[Issue 21105] New: Casting from a function pointer to a delegate
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Aug  3 14:50:55 UTC 2020
    
    
  
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 at puremagic.com
          Reporter: porton at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list