www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21276] New: TypeInfo.tsize() and TypeInfo.talign() should be


          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:

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