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

           Summary: std.traits should have an isFinal template
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: timon.g...@gmx.ch


--- Comment #0 from timon.g...@gmx.ch 2011-09-06 16:22:20 PDT ---
std.traits should have an isFinal template which indicates if a class type or
member function is final.

class A{}
final class B{}

static assert(!isFinal!A && isFinal!B);


class C{int foo();}
class D{final int foo();}

static assert(!isFinal!(C.foo) && isFinal!(D.foo));

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

Reply via email to