Streaming on all collections
Damien Cassou
damien.cassou at laposte.net
Sun Feb 11 17:00:10 UTC 2007
Hello,
why isn't it possible to stream over OrderedCollections ?
stream := WriteStream on: OrderedCollection new.
stream nextPut: $a
this generates a 'attempt to index non-existent element in an ordered
collection'
The documentation of WriteStream>>nextPut: says :
«
Fail if the collection of this stream is not an Array or a String.
»
Can somebody explain me why it is forbidden ?
--
Damien Cassou
More information about the Squeak-dev
mailing list
|