Get and add to function body

Psychological Cleanup Help at Saving.World
Thu Oct 12 23:33:39 UTC 2017


Is there any way to get the function body of a function, 
delegate, and lambda? I'd also like to extend functions by 
"wrapping" them at compile time generically. For example, I'd 
like to get all the properties of a class and add some code to 
them(sort of like adding a scope, prolog, and/or epilog).

Is any of this possible in D?


More information about the Digitalmars-d-learn mailing list