[Issue 21144] New: A __trait should give access to interface implementation vtbl and their offsets

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 10 01:41:20 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21144

          Issue ID: 21144
           Summary: A __trait should give access to interface
                    implementation vtbl and their offsets
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: andrei at erdani.com

Currently TypeInfo_Class implements a primitive interfaces() that returns an
array of struct Interface. The vtbl and offset of the interface are magic.
Should be available as __traits.

This blocks https://github.com/dlang/druntime/pull/3174.

--


More information about the Digitalmars-d-bugs mailing list