[Dlang-internal] 15th Planning (national congress edition)

Martin Nowak via Dlang-internal dlang-internal at puremagic.com
Wed Nov 9 20:13:56 PST 2016


On Thursday, 10 November 2016 at 00:26:59 UTC, Walter Bright 
wrote:
> On 11/9/2016 4:01 PM, Martin Nowak wrote:
>> - finish scope story
>
> The only thing left on that is allowing this to work:

+bugfixes, docs, changelog, and article

>   @safe void foo() {
>     int i;
>     int* pi = &i;
>   }
>
> With the other improvements to scope, this no longer needs to 
> be disallowed.

Which is great and make @safe much more useful, but only one 
aspect of DIP1000.
I think being able to tie the lifetime of a return value to the 
arguments of a function is the more fundamental and important 
change.


More information about the Dlang-internal mailing list