Thread overview
[Issue 7147] [CTFE] typeid() should be supported in CTFE
Feb 04, 2015
Nils
May 25, 2016
Andre
Mar 10, 2019
Alex
Dec 17, 2022
Iain Buclaw
February 04, 2015
https://issues.dlang.org/show_bug.cgi?id=7147

Nils <nilsbossung@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nilsbossung@googlemail.com
             Blocks|                            |7151

--- Comment #4 from Nils <nilsbossung@googlemail.com> ---
(In reply to Rainer Schuetze from comment #3)
> struct S { }
> static assert(typeid(S).init.length > 0);

Now gives: "Error: static variable typeid(S) cannot be read at compile time".

Same error when trying to call typeid(object.Object).opEquals:

---
static assert(typeid(new Object).opEquals(typeid(new Object)));
---
Error: static variable typeid(object.Object) cannot be read at compile time
---

This blocks 7151.

> class C {}
> static assert(typeid(C).init.length > 0);

Now gives: "Error: typeid(test.C).init is not yet implemented at compile time".

--
June 10, 2015
https://issues.dlang.org/show_bug.cgi?id=7147

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
May 25, 2016
https://issues.dlang.org/show_bug.cgi?id=7147

Andre <andre@s-e-a-p.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andre@s-e-a-p.de

--
March 10, 2019
https://issues.dlang.org/show_bug.cgi?id=7147

Alex <sascha.orlov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sascha.orlov@gmail.com

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=7147

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--