Injecting code into methods based on UDA's

Dicebot public at dicebot.lv
Sun Oct 20 08:43:34 PDT 2013


On Sunday, 20 October 2013 at 11:58:41 UTC, TheFlyingFiddle wrote:
>> It's only possible to inject code using a template or string 
>> mixin.
>
> Ah, too bad. Thanks for the answer.

Well, it is possible to do it if you use some kind of own 
framework for declarative stuff and call the function only from 
it (thus implementing check of attached UDA's inside of the 
framework). Actual function modification is not possible.


More information about the Digitalmars-d-learn mailing list