On Thursday, 7 March 2019 at 20:07:27 UTC, Simon wrote: > measure("func1"); > scope(exit) measure("func1"); I would suggest just using a struct. Make its constructor do the first measure, and its destructor do the second measure. I betcha you can avoid mixin entirely.