[squeak-dev] Re: 1.0 not a valid VersionNumber?

Bert Freudenberg bert at freudenbergs.de
Wed Apr 9 17:26:58 UTC 2008


On 09.04.2008, at 09:57, Andreas Raab wrote:
> John Thornborrow wrote:
>> Wouldn't that just be "Version 1" ?
>
> Simplified example. The real version number I'm interested in looks  
> like "1.0.34". But it looks like VersionNumber is a no-go for me  
> anyway as you can't even compare, e.g., '1.1.1' asVersion <= '1.2.3'  
> asVersion. Does anyone actually use VersionNumber? I must be missing  
> the real use cases for it.

Looks like SqueakMap is using it (see senders of #asVersion).

It's a bit odd in that something like this doesn't even work:

	'1.1.1' asVersion < '1.2.1' asVersion

("different branches" error ...)

- Bert -

> Cheers,
>  - Andreas
>
>> Andreas Raab wrote:
>>> Hi -
>>>
>>> Just ran into the problem that
>>>
>>>  VersionNumber fromString: '1.0'.
>>>
>>> complains that "VersionNumbers cannot contain zero or negative  
>>> numbers".
>>>
>>> Question: Is there an implementation dependency for that or is it  
>>> simply
>>> that VersionNumber is being overly paranoid here? In its current
>>> incarnation it's basically useless for me and I'd rather have the  
>>> check
>>> be for negative numbers only.
>>>
>>> Cheers,
>>>  - Andreas
>>>
>>>
>
>






More information about the Squeak-dev mailing list