[squeak-dev] The Trunk: Kernel-cmm.578.mcz
Enrico Spinielli
enrico.spinielli at googlemail.com
Tue May 3 07:39:31 UTC 2011
Hi,
see below
On Tue, May 3, 2011 at 01:46, <commits at source.squeak.org> wrote:
> Chris Muller uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-cmm.578.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-cmm.578
> Author: cmm
> Time: 2 May 2011, 6:46:17.696 pm
> UUID: 913d762f-e361-4f5e-814f-0b0692ffa4d9
> Ancestors: Kernel-ul.577
>
> - Support for streamlined variable reference / assignment browsing.
> - Fix for Month class>>#readFrom:.
>
> =============== Diff against Kernel-ul.577 ===============
> [...]
> Item was changed:
> ----- Method: Month class>>readFrom: (in category 'squeak protocol') -----
> readFrom: aStream
>
> | m y c |
> m := (ReadWriteStream with: '') reset.
> [(c := aStream next) isSeparator] whileFalse: [m nextPut: c].
> [(c := aStream next) isSeparator] whileTrue.
>* y := (ReadWriteStream with: '') reset.
>* y nextPut: c.
>* [aStream atEnd] whileFalse: [y nextPut: aStream next].
>
> ^ self
> month: m contents
> + year: y contents asInteger
> - year: y contents
>
> "Month readFrom: 'July 1998' readStream"!
Last part (lines marked with '>*') can probably be simplified (as in
Date>>readFrom:) as follows:
y := Integer readFrom: aStream.
Hope it helps
Bye
Enrico
--
Enrico Spinielli
"Do Androids dream of electric sheep?"— Philip K. Dick
"Hear and forget; see and remember;do and understand."—Mitchel Resnick
More information about the Squeak-dev
mailing list
|