[Dlang-internal] DIP1000 discussion and testing
Walter Bright via Dlang-internal
dlang-internal at puremagic.com
Sun Dec 18 07:25:55 PST 2016
On 12/18/2016 3:09 AM, Mathias Lang wrote:
> With the two last P.R. you submitted merged, the following compiles
>
> ```
> void escape () @safe
> {
> Foo f;
> bar(f);
> }
>
> void bar (scope ref Foo f) @safe
> {
> int[10] i;
> f.v = i;
> }
>
> struct Foo
> {
> int[] v;
> }
> ```
Thanks, I'll look at it tomorrow.
More information about the Dlang-internal
mailing list