TSa skribis 2005-12-23 17:33 (+0100): > lt < strictly inside ---------+ > gt > strictly outside ------+ | > eq == exactly on boundary --+ | | > | | | negation > ne != not on boundary --+ | | > le <= inside or on boundary --+ | > ge >= outside or on boundary ---+ > Comments?
If you like to overload operators with very different meanings, by all means go ahead, but please don't do it for something I use all the time, like ranges. We already have $range ~~ $inside and $range !~ $outside, and boundary checking isn't exactly interesting, but could probably be done with any($range.min, $range.max) == $boundary. I'd assume $foo < $range to compare $foo to the number of elements in the range, OR $foo < $range to mean $foo < $range.min, and $foo > $range to mean $foo > $range.max, and would be surprised if they meant anything else. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html