[Issue 6614] New: std.traits should have an isFinal template
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 6 16:22:31 PDT 2011
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: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at 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: -------
More information about the Digitalmars-d-bugs
mailing list