Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Correct Behaviour? Addendum

 [1/1] from: robbo1mark::aol::com at: 3-Jul-2001 7:01


Just thought I'd through this into the ring to show more inconsistency with REBOL
>> sort [ 1 false none true 0 ]
== [false none true 0 1]
>>
Here sort orders values according to logical! precedence starting with least true. This shows that 'none is indeed considered a logical equivalent of false and has lower "true" value than true, 0 & 1 IMHO the correct behaviour here should either be == [ false none 0 true 1] *OR* == [ false true none 0 1 ] in the latter case they are grouped according to datatype order & value which is still more consistant than the current potentially confusing REBOL behaviour. cheers, Mark Dickosn