[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: version comparison functions
From: |
David Kastrup |
Subject: |
Re: version comparison functions |
Date: |
Fri, 26 Aug 2005 15:41:34 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Jason Rumney <address@hidden> writes:
> Kim F. Storm wrote:
>
>>..but now that it has happened, I think it makes sense for these
>>functions to accept an optional argument to limit the number of
>>version string elements to compare. E.g.
>>
>> (version= "22.0.50" "22.0.50.37") => nil
>> (version= "22.0.50.36" "22.0.50.37") => nil
>>
>> (version= "22.0.50" "22.0.50.37" 3) => t
>> (version= "22.0.50.36" "22.0.50.37" 3) => t
>>
>>
> This may be useful as an addition to a general version number
> comparison, but for Emacs version numbers, I think we should DTRT
> based on the shorter of the two arguments:
>
> (version= "22" "22.0.50.37") => t
That would mean
(version= "22" "22.0.50.37") => t
(version= "22" "22.1.50.37") => t
(version= "22.0.50.37" "22.0.50.37") => nil
Not exactly endearing to the average mathematician or logician...
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Re: version comparison functions, Kim F. Storm, 2005/08/26
Re: version comparison functions, Stefan Monnier, 2005/08/26