www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21278] New: typeid() must be usable during compilation

https://issues.dlang.org/show_bug.cgi?id=21278

          Issue ID: 21278
           Summary: typeid() must be usable during compilation
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

Currently this fails to compile:

pragma(msg, typeid(int).toString); // should print "int"

Allowing the use of typeid() during compilation opens the door to a variety of
manipulations.

Related: https://issues.dlang.org/show_bug.cgi?id=9945

--
Sep 25 2020