Bug 21278 – typeid() must be usable during compilation

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-09-25T15:22:19Z
Last change time
2024-12-13T19:11:47Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: dmd#19794 →

Comments

Comment #0 by andrei — 2020-09-25T15:22:19Z
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
Comment #1 by robert.schadek — 2024-12-13T19:11:47Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19794 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB