www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9814] New: Add std.traits.isNestedFunctioin

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: k.hara.pg gmail.com



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: -------
Mar 25 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9814


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



https://github.com/D-Programming-Language/phobos/pull/1220

https://github.com/D-Programming-Language/phobos/commit/3d8f268e0a0e2957f32d99389e72d932dec3731a

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