Hi Cal,

This is by design. In the case of blocks or tuples, there is an implied 
order which can be used to sort the values and compare them. In the case of 
pairs, both values in a pair have equal weight, thus it isn't really 
possible to do a magnitude comparison because of the situation where they 
differ. Instead, the MIN and MAX natives return a new pair which contains 
the minimum or maximum of each value in the pair.

  - jim

At 01:01 PM 7/21/2000 +0000, you wrote:
>This was discovered on Rebol/Core 2.3 on Win98, I haven't checked any 
>other versions, but I suspect that it is crossplatform and also affects /View.
>
>The maximum and minimum (and therefore the 'max and 'min) functions return 
>strange values when used with the pair! datatype.  I am assuming that this 
>behavior is a bug, but I supposed it could be a bizzare feature, but even 
>then I feel that it should be changed for consistancy with other types.
>
>Instead of returning one of the argument values these functions construct 
>a new value combining
>both arguments. Example:
>>>maximum 1x4 2x3
>== 2x4
>>>min 1x4 2x3
>== 1x3
>
>for comparison (using tuple! and block!)
>>>min 1.4.0 2.3.0
>== 1.4.0
>>>min [1 4] [2 3]
>== [1 4]
>
>
>   Cal Dixon ([EMAIL PROTECTED])
>   -><-
>
><RANDOM QUOTE>
>Thousands of volunteers and several wildlife conservation groups threw 
>their efforts into rescuing the penguins from the two islands, which are 
>home to about one quarter of the world's Jackass population.
></RANDOM QUOTE>
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to