[Issue 8059] Deprecate .classinfo
https://issues.dlang.org/show_bug.cgi?id=8059 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --
[Issue 8059] Deprecate .classinfo
https://issues.dlang.org/show_bug.cgi?id=8059 --- Comment #8 from Dlang Bot --- @Geod24 created dlang/dmd pull request #11033 "Fix issue 8059 - Deprecate `.classinfo` in favor of `typeid`" fixing this issue: - Fix issue 8059 - Deprecate `.classinfo` in favor of `typeid` As explained in the changelog entry, `.classinfo` is redundant with `typeid`. However, the later better expresses the idea of a "runtime `typeof`", and free up an identifier in the pool of reserved properties. https://github.com/dlang/dmd/pull/11033 --
[Issue 8059] Deprecate .classinfo
https://d.puremagic.com/issues/show_bug.cgi?id=8059 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||pull CC||yebbl...@gmail.com --- Comment #7 from yebblies yebbl...@gmail.com 2013-11-17 17:44:49 EST --- https://github.com/D-Programming-Language/dmd/pull/2792 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8059] Deprecate .classinfo
http://d.puremagic.com/issues/show_bug.cgi?id=8059 Marco Leise marco.le...@gmx.de changed: What|Removed |Added CC||marco.le...@gmx.de --- Comment #3 from Marco Leise marco.le...@gmx.de 2012-05-10 12:03:05 PDT --- typeid(x) doesn't work in all cases where x.classinfo works (on 2.057/2.059). Something along the line of: TypeInfo_Class[string] lookup; class Foo { mixin Register!(foo); } template Register(string Trigger) { static this() { lookup[Trigger] = this.classinfo; // ok // lookup[Trigger] = typeid(this); - 'this' is only defined in non-static member functions, not _staticCtor13 } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8059] Deprecate .classinfo
http://d.puremagic.com/issues/show_bug.cgi?id=8059 --- Comment #4 from Steven Schveighoffer schvei...@yahoo.com 2012-05-10 14:02:39 PDT --- (In reply to comment #3) // lookup[Trigger] = typeid(this); - 'this' is only defined in non-static member functions, not _staticCtor13 typeid(typeof(this)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8059] Deprecate .classinfo
http://d.puremagic.com/issues/show_bug.cgi?id=8059 --- Comment #5 from Steven Schveighoffer schvei...@yahoo.com 2012-05-10 14:05:00 PDT --- Also see above referenced bug 3346 that specifically identifies classinfo as behaving abnormally. Looks like you found another case! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8059] Deprecate .classinfo
http://d.puremagic.com/issues/show_bug.cgi?id=8059 --- Comment #6 from Marco Leise marco.le...@gmx.de 2012-05-10 14:09:07 PDT --- Ah, thank you for that hint. So my code would survive the deprecation, if just by chance. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8059] Deprecate .classinfo
http://d.puremagic.com/issues/show_bug.cgi?id=8059 --- Comment #1 from Steven Schveighoffer schvei...@yahoo.com 2012-05-07 04:38:39 PDT --- See also issue 3346 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 8059] Deprecate .classinfo
http://d.puremagic.com/issues/show_bug.cgi?id=8059 Alex R�nne Petersen xtzgzo...@gmail.com changed: What|Removed |Added CC||xtzgzo...@gmail.com --- Comment #2 from Alex R�nne Petersen xtzgzo...@gmail.com 2012-05-07 04:40:25 PDT --- I think the intention has always been to deprecate it. It's about time we actually do so. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---