[Issue 20137] A program crashes at runtime (should be compile error)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 23 15:35:29 UTC 2019


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

Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras at gmail.com

--- Comment #6 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
Scoped!T is like goto - the default advice is "don't use it". When you're
ready, you'll know.

Scoped!T should probably be marked as dark magic in the documentation, because
that's what it is. It's a useful tool, but you need to know what you're doing,
and this should be properly conveyed by documentation.

Beyond that, there is no bug here - the language is doing what it should. This
is equivalent to you putting your finger in the circular saw and demanding it
be replaced with a hand saw.

--


More information about the Digitalmars-d-bugs mailing list