D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3806 - TypeInfo_Const has member base in object_.d and member next in object.di
Summary: TypeInfo_Const has member base in object_.d and member next in object.di
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 20:52 UTC by Michael Rynn
Modified: 2015-08-21 13:52 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Michael Rynn 2010-02-15 20:52:55 UTC
TypeInfo_Const in object_.d inherits function next(). It has a member, TypeInfo base.    This is useful for unwrapping Invariant and Const types. But object.di TypeInfo_Const has no member base but has member next, which would occupy same memory layout as the member base in object.d.    Trying to access TypeInfo_Const next, confuses with inherited next, which returns base.next.    Would like direct  access to the member base please (rename from next in object.di), just like in TypeInfo_Typedef. Workaround is just to fix it, edit object.di, TypeInfo_Const, and change name of member next to base.
Comment 1 Sean Kelly 2010-06-08 13:08:01 UTC
There appears to be little consistency with this field for TypeInfo.  Some have a "next" member, some have a "base" member, and some have an "m_next" member.  I'm afraid I'll break something if I change this, so I'm reassigning to Walter.  Ideally, all TypeInfo classes will use the same name (like "base") for the member variable and override next() appropriately.
Comment 2 Mike Franklin 2015-08-21 13:05:16 UTC
Since object.di has been removed (https://github.com/D-Programming-Language/druntime/pull/1260), is this issue still relevant?
Comment 3 Steven Schveighoffer 2015-08-21 13:52:55 UTC
(In reply to Mike from comment #2)
> Since object.di has been removed
> (https://github.com/D-Programming-Language/druntime/pull/1260), is this
> issue still relevant?

No, closing.