Re: [Pharo-users] Question about writeStream

2017-06-29 Thread Guillermo Polito
In fact the question comes from the fact that they are not polymorphic and you should know if you're manipulating a closable stream or not... Maybe a solution is indeed to use #writeStreamDo:, that should behave well even for in-memory, collection streams, no? On Thu, Jun 29, 2017 at 4:58 PM, Sve

Re: [Pharo-users] Question about writeStream

2017-06-29 Thread Sven Van Caekenberghe
> On 29 Jun 2017, at 16:07, Jérémie Regnault > wrote: > > Hi, > > I am writing tests with streams, and I noticed that a stream opened on a > string doesn't close, but FileStreams do close. Is it normal ? How do you mean that ? That FileStreams close automatically ? That is indeed the case,

[Pharo-users] Question about writeStream

2017-06-29 Thread Jérémie Regnault
Hi, I am writing tests with streams, and I noticed that a stream opened on a string doesn't close, but FileStreams do close. Is it normal ? -- Jérémie Regnault