[Issue 21276] New: TypeInfo.tsize() and TypeInfo.talign() should be replaced with member variables
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 25 15:13:44 UTC 2020
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 at puremagic.com
Reporter: andrei at 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.
--
More information about the Digitalmars-d-bugs
mailing list