[Dlang-internal] DIP1000 discussion and testing
Walter Bright via Dlang-internal
dlang-internal at puremagic.com
Wed Nov 23 04:10:49 PST 2016
On 11/22/2016 7:25 PM, Walter Bright wrote:
>> As well as the following:
>> ```
>> alias FunDG = void* delegate () @safe;
>>
>> void main () @safe
>> {
>> void* x = fwd();
>> }
>>
>> void* fwd () @safe
>> {
>> int x = 42;
>> scope FunDG f = () { return &x; };
>> return fun(f);
>> }
>>
>> void* fun (scope FunDG ptr) @safe
>> {
>> return ptr();
>> }
>
> I'll have to investigate that one.
I amended:
https://github.com/dlang/dmd/pull/6253
to fix it.
More information about the Dlang-internal
mailing list