[Issue 1609] TypeInfo_Typedef has incorrect implementation of next()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 6 02:13:36 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=1609
bugzilla at digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #3 from bugzilla at digitalmars.com 2009-01-06 04:13 -------
This is actually the intended behavior. All the virtual functions for a typedef
"see through" any layers of typedefs and work on the base type. This makes code
that walks the typeinfo's simpler.
To get the base of a typedef, cast the TypeInfo to a TypeInfo_Typedef, and get
the .base.
--
More information about the Digitalmars-d-bugs
mailing list