digitalmars.D.bugs - pragma
- Variadic functions cause TypeInfo casts to fail (13/13) Aug 07 2005 Has this been reported yet? This happens with DMD 0.129 (and possibly e...
- pragma (15/15) Aug 07 2005 Boy, I hosed that up real good. Here's the second try:
- Ben Hinkle (6/22) Aug 07 2005 "Variadic functions cause TypeInfo casts to fail"
- pragma (6/31) Aug 07 2005 The following does work:
- Ben Hinkle (5/10) Aug 08 2005 Interesting. I tried
- pragma (4/16) Aug 08 2005 Yikes, now that's screwed up. I wonder if the TypeInfo's TypeInfo is wha...
- =?ISO-8859-1?Q?Thomas_K=FChne?= (11/37) Aug 09 2005 -----BEGIN PGP SIGNED MESSAGE-----
Has this been reported yet? This happens with DMD 0.129 (and possibly earlier versions as well). The above fails the assert since the cast from _arguments[0] to TypeInfo_Array returns null. This only fails with variadic functions: casting from typeid() works fine, even in templates. - EricAnderton at yahoo
Aug 07 2005
Boy, I hosed that up real good. Here's the second try: Has this been reported yet? This happens with DMD 0.129 (and possibly earlier versions as well). The above fails the assert since the cast from _arguments[0] to TypeInfo_Array returns null. This only fails with variadic functions: casting from typeid() works fine, even in templates. - EricAnderton at yahoo - EricAnderton at (needs-to-check-the-form-first) yahoo
Aug 07 2005
"Variadic functions cause TypeInfo casts to fail" <Variadic_member pathlink.com> wrote in message news:dd60j3$10ki$1 digitaldaemon.com...Has this been reported yet? This happens with DMD 0.129 (and possibly earlier versions as well). The above fails the assert since the cast from _arguments[0] to TypeInfo_Array returns null. This only fails with variadic functions: casting from typeid() works fine, even in templates. - EricAnderton at yahooI couldn't get typeid(char[]) to cast to TypeInfo_Array - are you sure you were able to? Note if you look at src/phobos/std/typeinfo/ti_Aa.d is says char[]'s typeinfo subclasses TypeInfo not TypeInfo_Array.
Aug 07 2005
In article <dd62kj$12a9$1 digitaldaemon.com>, Ben Hinkle says..."Variadic functions cause TypeInfo casts to fail" <Variadic_member pathlink.com> wrote in message news:dd60j3$10ki$1 digitaldaemon.com...The following does work: It just seem so oddly inconsistent, especially since TypeInfo_Aa does in fact inherit from TypeInfo. - EricAnderton at yahooHas this been reported yet? This happens with DMD 0.129 (and possibly earlier versions as well). The above fails the assert since the cast from _arguments[0] to TypeInfo_Array returns null. This only fails with variadic functions: casting from typeid() works fine, even in templates. - EricAnderton at yahooI couldn't get typeid(char[]) to cast to TypeInfo_Array - are you sure you were able to? Note if you look at src/phobos/std/typeinfo/ti_Aa.d is says char[]'s typeinfo subclasses TypeInfo not TypeInfo_Array.
Aug 07 2005
Interesting. I tried TypeInfo ti = typeid(char[]); assert( cast(TypeInfo_Array)ti !is null ); and it fails so it looks like typeid is "returning" void* or something. Looks like a bug.I couldn't get typeid(char[]) to cast to TypeInfo_Array - are you sure you were able to? Note if you look at src/phobos/std/typeinfo/ti_Aa.d is says char[]'s typeinfo subclasses TypeInfo not TypeInfo_Array.The following does work:
Aug 08 2005
In article <dd7nr4$2g6i$1 digitaldaemon.com>, Ben Hinkle says...Yikes, now that's screwed up. I wonder if the TypeInfo's TypeInfo is what's broken? - EricAnderton at yahooInteresting. I tried TypeInfo ti = typeid(char[]); assert( cast(TypeInfo_Array)ti !is null ); and it fails so it looks like typeid is "returning" void* or something. Looks like a bug.I couldn't get typeid(char[]) to cast to TypeInfo_Array - are you sure you were able to? Note if you look at src/phobos/std/typeinfo/ti_Aa.d is says char[]'s typeinfo subclasses TypeInfo not TypeInfo_Array.The following does work:
Aug 08 2005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ben Hinkle schrieb:"Variadic functions cause TypeInfo casts to fail" <Variadic_member pathlink.com> wrote in message news:dd60j3$10ki$1 digitaldaemon.com...Known Issue: http://dstress.kuehne.cn/run/typeid_62.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFC+IX03w+/yD4P9tIRAkm1AJ9nBmwpKb8Un2T7bS2Pk0igxiw7JgCgiBVe CVmYgxjQ4s1u0IrIGezi8Vg= =SNO1 -----END PGP SIGNATURE-----Has this been reported yet? This happens with DMD 0.129 (and possibly earlier versions as well). The above fails the assert since the cast from _arguments[0] to TypeInfo_Array returns null. This only fails with variadic functions: casting from typeid() works fine, even in templates. - EricAnderton at yahooI couldn't get typeid(char[]) to cast to TypeInfo_Array - are you sure you were able to? Note if you look at src/phobos/std/typeinfo/ti_Aa.d is says char[]'s typeinfo subclasses TypeInfo not TypeInfo_Array.
Aug 09 2005