s/sort/sort or search/
search should be of type
function(array(mixed),mixed:int(-1,...))
(hmm, or does it accept a strng as first argument too?)
/ Niels Möller ()
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 ()