[Pharo-project] [Idiom] 'myfile.txt' asFileName readStream contents
oldmanlink at gmail.com
Sat Oct 30 07:04:34 EDT 2010
The result you got is what I would have expected too.
On Sat, Oct 30, 2010 at 12:50 PM, Hannes Hirzel <hannes.hirzel at gmail.com>wrote:
> Randal Schwartz writes in his blog
> about streams citing Derek Williams http://derekwilliams.us/?p=1411
> He gives the following as an example of elegant syntax of Smalltalk
> 'myfile.txt' asFileName readStream contents
> This does not work in Squeak nor in Pharo.
> It produces a ReadStream on the contents of the _String_ 'myfile.txt'.
> i.e. the ByteString with 10 elements.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev