[Issue 17927] [scope] scope input return value can be escaped
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 23 05:40:17 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17927
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
For the unittest, the `dup` does not create data with limited lifetime, so `s`
is not inferred as `scope`, and `escape` is free to escape it.
It's complicated, but the compiler is working as it is supposed to.
--
More information about the Digitalmars-d-bugs
mailing list