Comment #1 by andrej.mitrovich — 2012-12-21T07:30:46Z
Type modifiers can't be passed around in the language, but I think there's a separate issue already opened for this.
Anyway you can do:
import std.traits;
ref uint foo(ref uint num) {
return num;
}
void main()
{
alias FunctionAttribute FA;
static assert(functionAttributes!foo & FA.ref_);
}