<div dir="ltr"><div>I wonder about the Fraction implementation.<br>Since any Integer isFraction I think it&#39;s better to simply let super ^0.</div><div>Synthetizing an unreduced Fraction should be restricted to very specific case. Do you have such specific usage?<br>
<br></div><div>Nicolas<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/30  <span dir="ltr">&lt;<a href="mailto:commits@source.squeak.org" target="_blank">commits@source.squeak.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Frank Shearar uploaded a new version of Kernel to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Kernel-fbs.752.mcz" target="_blank">http://source.squeak.org/trunk/Kernel-fbs.752.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Kernel-fbs.752<br>
Author: fbs<br>
Time: 30 March 2013, 10:09:47.906 pm<br>
UUID: 0724a0a2-6b96-4e07-94ed-79bdc4e2466b<br>
Ancestors: Kernel-eem.751<br>
<br>
Increase the &quot;polymorphitude&quot; of numbers by supplying a default implementation of #zero, together with a few per-type specialisations to go with those we already have.<br>
<br>
=============== Diff against Kernel-eem.751 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Float class&gt;&gt;zero (in category &#39;constants&#39;) -----<br>
+ zero<br>
+       ^ 0.0.!<br>
<br>
Item was added:<br>
+ ----- Method: Fraction class&gt;&gt;zero (in category &#39;constants&#39;) -----<br>
+ zero<br>
+       ^ self numerator: 0 denominator: 1.!<br>
<br>
Item was added:<br>
+ ----- Method: Number class&gt;&gt;zero (in category &#39;constants&#39;) -----<br>
+ zero<br>
+       ^ 0.!<br>
<br>
<br>
</blockquote></div><br></div>