[Issue 2218] "builtin" typeinfos for arrays of basic types do not inherit TypeInfo_Array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 7 12:53:46 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2218


dhasenan at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #4 from dhasenan at gmail.com  2009-02-07 14:53 -------
I understand that I should never have to cast from TypeInfo_Ai to
TypeInfo_Array. That's not what I'm trying to do. I want to cast from TypeInfo
to TypeInfo_Array to see if a type is an array (and then get the value type).

This should be a relatively simple change and would make runtime reflection a
fair bit more powerful -- not in terms of what you can do, perhaps, but
certainly in terms of what information you can gather.

And no, it's *not* an option to try casting to TypeInfo_Ai, then TypeInfo_Aw,
then TypeInfo_Ag, ad nauseum.


-- 



More information about the Digitalmars-d-bugs mailing list