DIP1000: Should this compile
Simen Kjærås
simen.kjaras at gmail.com
Thu May 16 22:11:03 UTC 2019
On Thursday, 16 May 2019 at 21:21:51 UTC, Max Haughton wrote:
> https://run.dlang.io/is/cKFsXh
>
> Should this compile, or is return scope T* down to the user to
> not escape (Returning &local directly does not compile)
This is a bug, as can be showed by repeating the call to
(*boi).writeln - suddenly the output changes between calls.
Filed: https://issues.dlang.org/show_bug.cgi?id=19881
--
Simen
More information about the Digitalmars-d-learn
mailing list