Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 23, 2012 [Issue 9064] New: Add isInstanceOf to std.traits | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=9064 Summary: Add isInstanceOf to std.traits Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Phobos AssignedTo: andrej.mitrovich@gmail.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-23 05:44:31 PST --- struct Foo(T...) { } struct Bar(T...) { } void main() { static assert(isInstanceOf!(Foo, Foo!int)); static assert(!isInstanceOf!(Foo, Bar!int)); static assert(!isInstanceOf!(Foo, int)); static assert(!__traits(compiles, isInstanceOf!(Foo, Foo))); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 23, 2012 [Issue 9064] Add isInstanceOf to std.traits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9064 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-11-23 06:02:54 PST --- https://github.com/D-Programming-Language/phobos/pull/970 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 24, 2012 [Issue 9064] Add isInstanceOf to std.traits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9064 --- Comment #2 from github-bugzilla@puremagic.com 2012-11-24 09:56:17 PST --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/e02593090a909948183921f6f00039ce3f37acff Fixes Issue 9064 - Add isInstanceOf trait. https://github.com/D-Programming-Language/phobos/commit/cc9461baa82767412ff329514a1255aa33af31aa Merge pull request #970 from AndrejMitrovic/Fix9064 Fixes Issue 9064 - Add isInstanceOf trait -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 24, 2012 [Issue 9064] Add isInstanceOf to std.traits | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=9064 Alex Rønne Petersen <alex@lycus.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |alex@lycus.org Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation