[Issue 2043] Closure outer variables in nested blocks are not allocated/instantiated correctly: should have multiple instances but only have one.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 24 09:25:46 UTC 2022


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

--- Comment #42 from Artem Borisovskiy <kolos80 at bk.ru> ---
(In reply to Walter Bright from comment #40)
> > dmd test.c -preview=dip1000

Is DIP1000 going to become the standard behaviour anytime soon? I left D, my
former favourite language, for good 4 years ago because of this ancient bug
(more like it has become the last straw that broke the camel's back). It turned
out easier to figure out how Rust lifetimes work, than to not shoot myself in
the foot in D, a GC-based language, that's supposed to be even safer w.r.t.
memory.

What's even the current state of DIP1000?

--


More information about the Digitalmars-d-bugs mailing list