Function after
Marks function/method for usage with `AttributedFunction
`.
Former will call a Hook after
calling attributed function/method and provide
its return value as a single input parameter for a Hook.
There can be only one "after
"-attribute attached to a single symbol.
Prototype
auto after(alias Function)();
Parameters
Name | Description |
---|---|
Hook | function/method symbol to run after attributed function/method |
Returns
internal attribute struct that embeds supplied information
Example
auto filter(int result) { return result; } @after!filter() int foo() { return 42; }
Authors
Михаил Страшун
Copyright
© 2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.