On 01.09.2009, at 11:37, Nicolas Cellier wrote:
2009/9/1 commits@source.squeak.org:
Andreas Raab uploaded a new version of Collections to project The Trunk: http://source.squeak.org/trunk/Collections-ar.123.mcz
==================== Summary ====================
Name: Collections-ar.123 Author: ar Time: 1 September 2009, 12:38:06 pm UUID: e7432274-e18a-1e43-a002-f3ab261bd465 Ancestors: Collections-tfel.122
Some fixes for RWBinaryOrTextStream which was too agressive optimizing some paths. Also fixes Character>>codePoint: which has no reason to raise an exception for values > 256.
Don't know about the reason for such a limitation by just reading the diff... However, there was some insurance that a Character of value < 256 would be unique. Doesn't this matter?
#value: does this.
- Bert -
----- Method: Character class>>codePoint: (in category 'instance creation') ----- codePoint: integer
"Return a character whose encoding value is integer.
For ansi compability."
^self value: integer!
"Return a character whose encoding value is integer."
#Fundmntl.
(0 > integer or: [255 < integer])
ifTrue: [self error: 'parameter out of range
0..255'].
^ CharacterTable at: integer + 1!