Scope checking on static array struct doesn't kick in
Nordlöw via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 9 05:25:29 PDT 2017
On Tuesday, 9 May 2017 at 11:52:35 UTC, Nordlöw wrote:
> I've tagged the ref-returning functions (in this case
> `opSlice`) with `return scope` for my statically allocated
> array struct at
Here's a simpler example
https://github.com/nordlow/phobos-next/blob/cf85f449d24981fbe6269f8096db23282e2fbb65/tests/test_scope.d
More information about the Digitalmars-d-learn
mailing list