Integral types that define opCmp, opEquals
Henning Hasemann
hhasemann at web.de
Tue Mar 6 13:40:04 PST 2007
> IIRC 'is' tests if a _type_ is valid. Try something like is(typeof(i < i)).
Works quite well, only thing is that
it yields true for everything that is derived from object,
but these indeed *have* defined opCmp so I guess
there is no real way to find out if the writer of
a class things this class' objects should be comparable
to themselves.
Henning
--
v4sw7Yhw4ln0pr7Ock2/3ma7uLw5Xm0l6/7DGKi2e6t6ELNSTVXb7AHIMOen5a2Xs5Mr2g5ACPR hackerkey.com
More information about the Digitalmars-d
mailing list