digitalmars.D.bugs - [Issue 21276] New: TypeInfo.tsize() and TypeInfo.talign() should be
- d-bugmail puremagic.com (21/21) Sep 25 2020 https://issues.dlang.org/show_bug.cgi?id=21276
https://issues.dlang.org/show_bug.cgi?id=21276 Issue ID: 21276 Summary: TypeInfo.tsize() and TypeInfo.talign() should be replaced with member variables Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: andrei erdani.com Currently TypeInfo.tsize() and TypeInfo.talign() are virtual functions that simply return an integral each. Then there's the work on const-folding those: https://github.com/dlang/dmd/pull/11792 The right and simpler approach is to make these two member variables in the TypeInfo object. That should make everything easier, cheaper, and faster, including the const folding. --
Sep 25 2020