Not sure what the junk below on the commit diff is; it all looks familiar and faintly cog-related though. Do we have the dirty-inbox problem again? AFAIK I only touched three comments in this commit.<br><br><div class="gmail_quote">
On Tue, Jul 27, 2010 at 8:47 PM,  <span dir="ltr">&lt;<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
A new version of Kernel was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Kernel-cbr.475.mcz" target="_blank">http://source.squeak.org/inbox/Kernel-cbr.475.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Kernel-cbr.475<br>
Author: cbr<br>
Time: 27 July 2010, 8:47:17.817 pm<br>
UUID: 31fff092-aa15-4aac-9cff-0edb485a0d25<br>
Ancestors: Kernel-eem.474<br>
<br>
A few of the chronology classes met my current heuristic for &quot;comment is too small,&quot; and though the comments were fine as is, I added an example usage to each just for fun.<br>
<br>
=============== Diff against Kernel-eem.474 ===============<br>
<br>
Item was changed:<br>
  Timespan subclass: #Week<br>
        instanceVariableNames: &#39;&#39;<br>
        classVariableNames: &#39;StartDay&#39;<br>
        poolDictionaries: &#39;ChronologyConstants&#39;<br>
        category: &#39;Kernel-Chronology&#39;!<br>
<br>
+ !Week commentStamp: &#39;cbr 7/27/2010 20:28&#39; prior: 0!<br>
+ I represent a week.<br>
+<br>
+ To find out what days of the week on which Squeak is fun, select the following expression, and print it:<br>
+<br>
+ Week dayNames!<br>
- !Week commentStamp: &#39;brp 5/13/2003 09:48&#39; prior: 0!<br>
- I represent a week.!<br>
<br>
Item was changed:<br>
  Timespan subclass: #Year<br>
        instanceVariableNames: &#39;&#39;<br>
        classVariableNames: &#39;&#39;<br>
        poolDictionaries: &#39;&#39;<br>
        category: &#39;Kernel-Chronology&#39;!<br>
<br>
+ !Year commentStamp: &#39;cbr 7/27/2010 20:41&#39; prior: 0!<br>
+ I represent a year.<br>
+<br>
+ Try me!! Select the following expression and print it:<br>
+<br>
+ Year current daysInYear &quot;Try me again next leap year!!&quot;!<br>
- !Year commentStamp: &#39;dtl 7/11/2009 16:35&#39; prior: 0!<br>
- I represent a year.!<br>
<br>
Item was changed:<br>
  Timespan subclass: #Month<br>
        instanceVariableNames: &#39;&#39;<br>
        classVariableNames: &#39;&#39;<br>
        poolDictionaries: &#39;ChronologyConstants&#39;<br>
        category: &#39;Kernel-Chronology&#39;!<br>
<br>
+ !Month commentStamp: &#39;cbr 7/27/2010 20:34&#39; prior: 0!<br>
+ I represent a month.<br>
+<br>
+ For example, to get the number of days this month, you can evaluate the following expression:<br>
+<br>
+ Month current daysInMonth!<br>
- !Month commentStamp: &#39;brp 5/13/2003 09:48&#39; prior: 0!<br>
- I represent a month.!<br>
<br>
Item was removed:<br>
- ----- Method: Integer&gt;&gt;isPrime (in category &#39;testing&#39;) -----<br>
- isPrime<br>
-       &quot;Answer true if the receiver is a prime number. See isProbablyPrime for a probabilistic<br>
-       implementation that is much faster for large integers, and that is correct to an extremely<br>
-       high statistical level of confidence (effectively deterministic).&quot;<br>
-<br>
-       self &lt;= 1 ifTrue: [ ^false ].<br>
-       self even ifTrue: [ ^self = 2].<br>
-       3 to: self sqrtFloor by: 2 do: [ :each |<br>
-               self \\ each = 0 ifTrue: [ ^false ] ].<br>
-       ^true!<br>
<br>
Item was removed:<br>
- ----- Method: Float class&gt;&gt;twoPi (in category &#39;constants&#39;) -----<br>
- twoPi<br>
-<br>
-       ^ Twopi<br>
- !<br>
<br>
Item was removed:<br>
- ----- Method: Integer&gt;&gt;isProbablyPrimeWithK:andQ: (in category &#39;private&#39;) -----<br>
- isProbablyPrimeWithK: k andQ: q<br>
-       &quot;Algorithm P, probabilistic primality test, from<br>
-       Knuth, Donald E. &#39;The Art of Computer Programming&#39;, Vol 2,<br>
-       Third Edition, section 4.5.4, page 395, P1-P5 refer to Knuth description.&quot;<br>
-<br>
-       &quot;P1&quot;<br>
-<br>
-       | x j y |<br>
-       x := (self - 2) atRandom + 1.<br>
-       &quot;P2&quot;<br>
-       j := 0.<br>
-       y := x raisedToInteger: q modulo: self.<br>
-       &quot;P3&quot;<br>
-<br>
-       [(((j = 0) &amp; (y = 1)) | (y = (self - 1))) ifTrue: [^true].<br>
-       ((j &gt; 0) &amp; (y = 1)) ifTrue: [^false].   &quot;P5&quot;<br>
-       true]<br>
-                       whileTrue:<br>
-                               [j := j + 1.<br>
-                               (j &lt; k) ifTrue: [y := y squared \\ self]<br>
-                               ifFalse:[^ false]]!<br>
<br>
Item was removed:<br>
- ----- Method: Object&gt;&gt;isArray (in category &#39;testing&#39;) -----<br>
- isArray<br>
-       ^false!<br>
<br>
Item was removed:<br>
- ----- Method: Integer&gt;&gt;raisedToInteger:modulo: (in category &#39;mathematical functions&#39;) -----<br>
- raisedToInteger: exp modulo: m<br>
-       (exp = 0) ifTrue: [^ 1].<br>
-       exp even<br>
-               ifTrue: [^ (self raisedToInteger: (exp // 2) modulo: m) squared \\ m]<br>
-               ifFalse: [^ (self * (self raisedToInteger: (exp - 1) modulo: m)) \\ m].!<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Casey Ransberger<br>