September 25, 2020 [Issue 21276] New: TypeInfo.tsize() and TypeInfo.talign() should be replaced with member variables | ||||
---|---|---|---|---|
| ||||
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. -- |
Copyright © 1999-2021 by the D Language Foundation