Injecting code into methods based on UDA's

Jacob Carlborg doob at me.com
Sun Oct 20 02:25:47 PDT 2013


On 2013-10-20 01:16, TheFlyingFiddle wrote:
> Is it possible to inject code into a method with UDA's?
> For example if i wanted a method to do some logging when it's
> called.

It's only possible to inject code using a template or string mixin.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list