0 in version number?

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 17 07:06:13 PDT 2015


On Saturday, 17 October 2015 at 11:44:31 UTC, Marc Schütz wrote:
> On Saturday, 17 October 2015 at 08:51:05 UTC, Shriramana Sharma 
> wrote:
>> bitwise wrote:
>>
>>> 2.100 -> transition here, maintain sortability
>>
>> Again, what's this about sortability? Raise your hands please 
>> whoever is using strcmp or the like to do sorting on D version 
>> numbers!
>
> Sorting happens in many places where the sorting program is not 
> aware that it's working with version numbers. Think of 
> directory listings, for example.

Also, in your brain ;)

When you look at two version numbers next to each other, you have 
to be able to tell which one is larger.

2.1 > 2.099

     Bit


More information about the Digitalmars-d mailing list