I believe that I've figured out a way to accomplish the first step, but not the second.
import std.stdio; class Foo { this(string bar) { writeln(bar); } } void main() { Foo f = (new Foo[1])[0]; f("Hello"); // doesn't compile }
Chris Williams via Digitalmars-d-learn Thu, 05 Jun 2014 15:26:20 -0700
I believe that I've figured out a way to accomplish the first step, but not the second.
import std.stdio; class Foo { this(string bar) { writeln(bar); } } void main() { Foo f = (new Foo[1])[0]; f("Hello"); // doesn't compile }