[pacman-dev] vercmp discussion (was: String freeze for 3.2 release)
Nagy Gabor
ngaba at bibl.u-szeged.hu
Thu Jul 17 11:39:09 EDT 2008
> 2. A very little notice:
> Now 1.5b < 1.5, but 1.5.b > 1.5
> In the "block terminology" of the code, 1.5b and 1.5.b are identical.
> The difference appeared, because your patch uses isalpha() instead of
> some "next block is alpha?" computation. To be honest, this may be
> better than 1.5.b < 1.5, so you can skip this casuist note.
>
> Bye
This note inspired me to test '1.0. == 1.0'
You may think that this is useless, but image '1.0 ' versus
'1.0' (extra spacebar, '\n' etc. character). The old code beats the new
one again :-P
Bye
More information about the pacman-dev
mailing list