MOO-cows Mailing List Archive
Date: Tue, 3 Sep 1996 09:09:00 PDT
From: Colin McCormick <email@example.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Is there any reason why max() takes only integer and float arguments? It
would be convenient to be able to do
where in this latter case the strings are compared lexicographically.
Obviously if the argument contained different types (other than just
integers and floats) max() should return an E_ARGS, but it seems reasonable
to compare object numbers with object numbers and strings with strings,
especially as the < and > operators permit this.
Subject Index |