Getting a type error when doing a[0]=="b" has helped on many occasions though.
/ Martin Nilsson (Åskblod)
Previous text:
2003-02-12 14:16: Subject: Search bug ?
To me it seems like the type system is far too strict here. `= should be of type function(mixed,mixed:int(0,1)). Calling it with arguments of different tpes should return false, but it can never be a type error.
And the same goes for functions like sort that wants to compare elements. It should not require that the types are the same, as any two objects of any types can be compared.
/ Niels Möller ()