Isn't it what a scoped class is supposed to provide? class Rnd {}void foo() {scope rnd = new Rnd; // reference semantic and stack allocated}
Does that actually work in D2? I thought it was a D1-only thing.
Joseph Rushton Wakeling via Digitalmars-d-announce Sun, 14 Aug 2016 22:01:39 -0700
Isn't it what a scoped class is supposed to provide? class Rnd {}void foo() {scope rnd = new Rnd; // reference semantic and stack allocated}
Does that actually work in D2? I thought it was a D1-only thing.