hi,
when looking at this typeof comparison thing, i found the following oddity:
array(string) astr; array(int) aint; typeof(astr) < typeof(aint);
Result: 1
typeof(astr) > typeof(aint);
Result: 1
how can they both be true?
greetings, martin.
Well, string and int are not equal, and are not ordered in respect to each other, so they would have to be greater and lesser than the other. I'm just speculating here though.
In that case both comparisons should yield 0, not 1. This is a bug in < and > on types; <= and >= works correctly. It's fixed in 7.7, at least.
pike-devel@lists.lysator.liu.se