[Issue 8812] New: functionAttributes doesn't returns const/immutable/shraed/inout attributs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 13 07:53:56 PDT 2012


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 at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 2012-10-13 07:53:55 PDT ---
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: -------


More information about the Digitalmars-d-bugs mailing list