Bug 21142 – TypeInfo_Class.offTi() not available via introspection

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-10T01:37:43Z
Last change time
2024-12-13T19:10:46Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: dmd#19764 →

Comments

Comment #0 by andrei — 2020-08-10T01:37:43Z
(It's also undocumented?) There should be a way to obtain that info without using the typeid, otherwise typeid cannot be implemented as a library. This blocks https://github.com/dlang/druntime/pull/3174.
Comment #1 by destructionator — 2020-08-10T01:41:57Z
Can't you use __traits(all/getMembers) to get this? ....though I don't know exactly what offTi is supposed to be anyway.
Comment #2 by bugzilla — 2020-08-10T22:19:58Z
The compiler implements it as always a null array: // offTi[] dtb.size(0); dtb.size(0); // null for now, fix later I guess it never was fixed, was never needed, and I forgot what use it was intended for.
Comment #3 by andrei — 2020-08-11T17:57:20Z
Great, thanks for the info.
Comment #4 by robert.schadek — 2024-12-13T19:10:46Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19764 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB