[Pharo-dev] FileSystem memory bug?

Sven Van Caekenberghe sven at stfx.eu
Fri Nov 8 07:59:08 EST 2013


Hi Martin,

I would guess that the stream created by the memory filesystem are binary, not character, as STON expects.

Sven

On 08 Nov 2013, at 13:55, Martin Dias <tinchodias at gmail.com> wrote:

> Hi,
> 
> I'm working in latest Pharo (30577) with STON (bleeding edge) and I get MNU:SmallInteger>>isSeparator when I evaluate the code below. Is my code wrong? The idea is to make my test suite work in the memory file system.
> 
> | fileSystem |
> fileSystem := FileSystem memory.
> 
> (fileSystem / 'file.txt') ensureCreateFile.
> 
> STON writer
> 	on: (fileSystem / 'file.txt') writeStream;
> 	nextPut: 'hi'.
> 	
> STON reader
> 	on: (fileSystem / 'file.txt') readStream;
> 	next.
> 
> Thanks in advance.
> 
> Martín





More information about the Pharo-dev mailing list