The Trunk: Kernel-nice.685.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-nice.685.mcz

commits-2
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.685.mcz

==================== Summary ====================

Name: Kernel-nice.685
Author: nice
Time: 4 May 2012, 10:51:32.635 am
UUID: 2febaac6-3ff5-3640-abfd-068dce4f0a2b
Ancestors: Kernel-eem.684

Rename Number class>>#readSqueakSyntaxFrom: into #readSmalltalkSyntaxFrom:

This is to provide a common API across dialects for external packages since both VW7.x and Pharo2.0 have #readSmalltalkSyntaxFrom:

Note that Number syntax may vary slightly across dialects and #readSmalltalkSyntaxFrom: is to be understood "in local dialect"...

#readSqueakSyntaxFrom: was quite recent and not used in trunk, so I removed rather than deprecate. If you don't agree, raise your voice.

=============== Diff against Kernel-eem.684 ===============

Item was added:
+ ----- Method: Number class>>readSmalltalkSyntaxFrom: (in category 'instance creation') -----
+ readSmalltalkSyntaxFrom: stringOrStream
+ "Answer a number as described on aStream.  The number may
+ be any accepted Smalltalk literal Number format.
+ It can include a leading radix specification, as in 16rFADE.
+ It can as well be NaN, Infinity or -Infinity for conveniency.
+ If stringOrStream does not start with a valid number description, fail."
+
+ ^(SqNumberParser on: stringOrStream) nextNumber!

Item was removed:
- ----- Method: Number class>>readSqueakSyntaxFrom: (in category 'instance creation') -----
- readSqueakSyntaxFrom: stringOrStream
- "Answer a number as described on aStream.  The number may
- be any accepted Smalltalk literal Number format.
- It can include a leading radix specification, as in 16rFADE.
- It can as well be NaN, Infinity or -Infinity for conveniency.
- If stringOrStream does not start with a valid number description, fail."
-
- ^(SqNumberParser on: stringOrStream) nextNumber!