Bug 8656 – Different naming of member base/next in TypeInfo_Const in object_.d and object.di

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-14T01:02:00Z
Last change time
2016-12-20T19:14:34Z
Keywords
bootcamp
Assigned to
nobody
Creator
r.sagitario

Comments

Comment #0 by r.sagitario — 2012-09-14T01:02:12Z
In object_.d, the name of the modified type in TypeInfo_Const is called "base", while in object.di, the declaration looks like this: class TypeInfo_Const : TypeInfo { TypeInfo next; } This forces you to use different namings depending on whether you compile with druntime or something else. I recommend naming it "base" as all other TypeInfo declarations do. TypeInfo_Const in object.di even shadows the next() property of TypeInfo that returns something else. Unfortunately the next field already seems to be used in phobos, so it has to be changed there aswell.
Comment #1 by jiki — 2016-12-20T10:01:15Z
object.di and renamed object_.d have already been turned into object.d about 2.069, so this can be closed, ok?
Comment #2 by r.sagitario — 2016-12-20T19:14:34Z
> so this can be closed, ok? yes.