Bug 21276 – TypeInfo.tsize() and TypeInfo.talign() should be replaced with member variables

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

Comments

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