Generating code based on UDA
Rares Pop via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Oct 25 08:56:02 PDT 2014
Ali,
Many thanks for your help.
Indeed it worked. What is the rationale behind the
mixin(fullName) ?
However, in my project the injections function, the @Inject UDA
struct and some other dependencies are defined in a library
(libinfuse).
In this format the compiler gives the undefined identifier error
I was mentioning in my first post.
"source/infuse/injector.d-mixin-148(148): Error: undefined
identifier B"
From what I read in the documentation, source mixins should have
the instantiation scope.
Is this a dmd compiler bug?
Thanks again for your input guys,
Rares
More information about the Digitalmars-d-learn
mailing list