digitalmars.D.bugs - [Issue 3806] New: TypeInfo_Const has member base in object_.d and member next in object.di
- d-bugmail puremagic.com (25/25) Feb 15 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3806
- d-bugmail puremagic.com (10/10) Jun 08 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3806
http://d.puremagic.com/issues/show_bug.cgi?id=3806 Summary: TypeInfo_Const has member base in object_.d and member next in object.di Product: D Version: 2.040 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: druntime AssignedTo: sean invisibleduck.org ReportedBy: y0uf00bar gmail.com --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 15 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3806 --- 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. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 08 2010