[Issue 20823] [DIP 1000] un- at safe code fails with dip1000

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 11 23:52:51 UTC 2021


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |Vision
                 CC|                            |dkorpel at live.nl
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #1 from Dennis <dkorpel at live.nl> ---
Reduced a bit more:

```
void boo(T)(  scope   void delegate(T[] data) fun) {} 
void goo(T)(/+scope+/ void delegate(T[] data) fun) {} 

void main() {
    void Execute(int[] data) {}
    goo(&Execute); // Works
    boo(&Execute); // Compiler error with DIP 1000
}
```

--


More information about the Digitalmars-d-bugs mailing list