[Issue 21278] New: typeid() must be usable during compilation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 25 15:22:19 UTC 2020
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 at puremagic.com
Reporter: andrei at 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
--
More information about the Digitalmars-d-bugs
mailing list