Steffen Mueller wrote:
Why have a limit on a simple integer, and such a low one? I did this in the distant past with MakeMaker and was roundly, and justly, admonished.

IIRC it's because the magic XXXXXXXX.YYY.ZZZ <-> XXXXXXXX.YYYZZZ association is assumed all over the place.

I was worried that was it. That conversion should be considered, but not enshrined in the spec as a limit.

As noted earlier, the spec is missing a definition about how versions compare. Using the conversion algorithm I outlined to convert from decimal to dotted, which appears to be what version.pm uses, there's no need for a limit. vX.YYYY is always greater than X.anything because you can't express vX.YYYY as a dotted version. And that's fine, there's no requirement for a one to one mapping. So long as every decimal can be expressed as a dotted everything can be compared.

Reply via email to