Naming methods from strings using mixin

Adam D. Ruppe destructionator at gmail.com
Tue Feb 21 10:13:29 PST 2012


On Tuesday, 21 February 2012 at 18:07:34 UTC, Robert Rouse wrote:
> What am I missing?

Did you remember to new the class?

class MyClass {}

MyClass a; // a is null right now
a = new MyClass(); // gotta remember this



That's different than structs (or classes in C++)
which work without being new'd.



More information about the Digitalmars-d-learn mailing list