[Issue 9814] New: Add std.traits.isNestedFunctioin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 25 19:31:28 PDT 2013


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

           Summary: Add std.traits.isNestedFunctioin
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-03-25 19:31:27 PDT ---
It would check whether the function is nested.

unittest
{
    static void f() {}
    void g() {}
    static assert(!isNestedFunction!f);
    static assert( isNestedFunction!g);
}

-- 
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