setTypeInfo???
dsimcha
dsimcha at yahoo.com
Sun Aug 31 09:30:55 PDT 2008
== Quote from bearophile (bearophileHUGS at lycos.com)'s article
> Denis Koroskin:
> > Looks like my message class is a static array:
> Thank you, this fixes that uncommon bug, I have fixed another similar bug
relative to AAs.
> template IsArray(T) {
> const bool IsArray = !is(T == class) && is(typeof(T.length)) &&
> is(typeof(T.sort)) && is(typeof(T.reverse))
> && is(typeof(T.dup));
> }
> Bye and thank you,
> bearophile
Or, if you're using D2 Phobos or (I think) D1 Tango, just port to the std lib
implementations of isArray, etc. That's what I did, rather than
re-invent/maintain/debug the wheel.
More information about the Digitalmars-d
mailing list