<br><br><div class="gmail_quote">On Wed, Apr 9, 2008 at 1:49 PM, Andreas Raab <<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">Stephen Pair wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8x;border-left:1px #ccc solid;padding-left:1ex">
Simplified example. The real version number I'm interested in looks<br>
like "1.0.34". But it looks like VersionNumber is a no-go for me<br>
anyway as you can't even compare, e.g., '1.1.1' asVersion <= '1.2.3'<br>
asVersion. Does anyone actually use VersionNumber? I must be missing<br>
the real use cases for it.<br>
<br>
<br>
I'm curious whether you'd expect this to return true or false (I'm guess true). The reason it refuses that compasion is that #< is meant to test whether a given version number is an ancestor of another. If you want the stringish comparison behavior, you could just use string. <br>
</blockquote>
<br></div>
I wish...<br>
<br>
'1.1.2' < '1.12.3'<br>
<br>
=> false</blockquote><div><br class="webkit-block-placeholder"></div><div>Did you actually mean true? (if not, I don't actually get what you're after)...VersionNumber aside, I wonder what you could reasonably infer from answer answer of true given for '1.1.2' < '1.12.3' ...I don't think you could infer that 1.12.3 was published after 1.1.2 for example. I don't think you could infer that 1.12.3 includes everything in included in 1.1.2 (i.e. that 1.12.3 is derived from 1.1.2). About all you could infer is that 1 < 12.</div>
<div><br class="webkit-block-placeholder"></div><div>- Stephen</div></div>