Metaprogramming: check for ref
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Sep 30 13:37:28 PDT 2012
On 9/30/12, mist <none at none.none> wrote:
> How can I:
> 1) check if function returns by ref
> 2) check if function parameters are ref
> ..outside of function body. Is parsing typeof(func).stringof only
> valid option?
>
See ParameterStorageClassTuple in std.traits
http://dlang.org/phobos/std_traits.html
I'm not sure about the return type though. Maybe the template should
be improved to add return type into account.
More information about the Digitalmars-d-learn
mailing list