http://d.puremagic.com/issues/show_bug.cgi?id=3756


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrov...@gmail.com
         Resolution|                            |FIXED


--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-12-21 
07:30:46 PST ---
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_);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to