DIP69 - Implement scope for escape proof references

ixid via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 5 06:04:38 PST 2014


> void foo(int[2]) {}
> void bar(int[]) {}
> void main() @nogc {
>     foo([1, 2]s);
>     bar([1, 2]s);
> }

That is a rather unfriendly syntax, it is the kind that 
degenerates into noise with other structures.


More information about the Digitalmars-d mailing list