scope escaping

Namespace rswhite4 at googlemail.com
Thu Feb 6 12:23:48 PST 2014


On Thursday, 6 February 2014 at 20:17:25 UTC, Benjamin Thaut 
wrote:
> Another idea. I would totaly love that behaviour.
>
> void foo(scope int[] arg) { ... }
>
> foo([1 2 3 4]); // allocates the array literal on the stack, 
> because it is scoped.
>
> Kind Regards
> Benjamin Thaut

+1


More information about the Digitalmars-d mailing list