<br><br><div class="gmail_quote">On Wed, Apr 9, 2008 at 1:49 PM, Andreas Raab &lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt; 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">
 &nbsp; &nbsp;Simplified example. The real version number I&#39;m interested in looks<br>
 &nbsp; &nbsp;like &quot;1.0.34&quot;. But it looks like VersionNumber is a no-go for me<br>
 &nbsp; &nbsp;anyway as you can&#39;t even compare, e.g., &#39;1.1.1&#39; asVersion &lt;= &#39;1.2.3&#39;<br>
 &nbsp; &nbsp;asVersion. Does anyone actually use VersionNumber? I must be missing<br>
 &nbsp; &nbsp;the real use cases for it.<br>
<br>
<br>
I&#39;m curious whether you&#39;d expect this to return true or false (I&#39;m guess true). &nbsp;The reason it refuses that compasion is that #&lt; is meant to test whether a given version number is an ancestor of another. &nbsp;If you want the stringish comparison behavior, you could just use string. <br>

</blockquote>
<br></div>
I wish...<br>
<br>
 &nbsp;&#39;1.1.2&#39; &lt; &#39;1.12.3&#39;<br>
<br>
=&gt; false</blockquote><div><br class="webkit-block-placeholder"></div><div>Did you actually mean true? (if not, I don&#39;t actually get what you&#39;re after)...VersionNumber aside, I wonder what you could reasonably infer from answer answer of true given for&nbsp;&#39;1.1.2&#39; &lt; &#39;1.12.3&#39; ...I don&#39;t think you could infer that 1.12.3 was published &nbsp;after 1.1.2 for example. &nbsp;I don&#39;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). &nbsp;About all you could infer is that 1 &lt; 12.</div>
<div><br class="webkit-block-placeholder"></div><div>- Stephen</div></div>