www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8812] New: functionAttributes doesn't returns const/immutable/shraed/inout attributs

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

           Summary: functionAttributes doesn't returns
                    const/immutable/shraed/inout attributs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: zan77137 nifty.com



This code doesn't work:
-------------------------------------
import std.traits;
class A
{
    void foo() const { }
}

void main()
{
    auto a = new A;
    static assert(functionAttributes!(a.foo) != FunctionAttribute.none);
}
-------------------------------------

functionAttributes does not consider these attributes now.
functionAttributes should consider these attributes.
Or there should be a different method to examine it. (eg. functionQualifiers

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