[Issue 16037] assigning delegate to a scope variable shouldn't allocate closure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 9 12:11:35 UTC 2018


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

Mathias Lang <mathias.lang at sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Mathias Lang <mathias.lang at sociomantic.com> ---
This is wrong. Gratuitously breaking code is not okay, especially when this
code could be working correctly, even if some safety checks were not performed.

This should not be considered in the context of a single codebase, but in the
context of the whole ecosystem: if you break code that is working in a library
that many depends on, a user won't care if the language is better as [s]he is
not able to use it.

I raised an objection on the PR about it being an reject-valid, but Walter
rightly pointed out that the reasoning is the same:
https://github.com/dlang/dmd/pull/7981#issuecomment-370570068

--


More information about the Digitalmars-d-bugs mailing list