Generating code based on UDA
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Oct 25 06:53:34 PDT 2014
On Saturday, 25 October 2014 at 13:45:29 UTC, Rares Pop wrote:
> What do you mean by copy/pasting ?
I literally copied the code in your post (and fixed a missing
semicolon) and got it to compile.
Passing A as an argument to injections should work. You can also
use this and typeof(this) inside the injections template code to
access the class. It should all work.
More information about the Digitalmars-d-learn
mailing list