Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.213.mcz==================== Summary ====================
Name: Collections-nice.213
Author: nice
Time: 27 November 2009, 12:49:56 pm
UUID: 5154a9ec-be60-2648-9d01-66aa3679e15c
Ancestors: Collections-ar.212
Support for literal ByteArray #[1 2 3]
=============== Diff against Collections-ar.212 ===============
Item was added:
+ ----- Method: ByteArray>>isLiteral (in category 'testing') -----
+ isLiteral
+ "so that #(1 #[1 2 3] 5) prints itself"
+ ^ true!
Item was added:
+ ----- Method: ByteArray>>printOn: (in category 'printing') -----
+ printOn: aStream
+
+ aStream nextPutAll: '#['.
+ self
+ do: [ :each | each printOn: aStream ]
+ separatedBy: [ aStream nextPut: $ ].
+ aStream nextPut: $]!
Item was added:
+ ----- Method: ByteArray>>storeOn: (in category 'printing') -----
+ storeOn: aStream
+ aStream nextPutAll: '#['.
+ self
+ do: [ :each | each storeOn: aStream ]
+ separatedBy: [ aStream nextPut: $ ].
+ aStream nextPut: $]!