[Pharo-dev] FileSystem memory bug?

Martin Dias tinchodias at gmail.com
Fri Nov 8 07:57:25 EST 2013


Note: It works fine if I use `FileSystem workingDirectory`.

Also it works with:

| aWriteStream |
aWriteStream := '' writeStream.

STON writer
on: aWriteStream;
nextPut: 'hi'.
 STON reader
on: aWriteStream contents readStream;
next.

Thanks again,
Martín


On Fri, Nov 8, 2013 at 1:55 PM, 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131108/fac0c2c0/attachment-0002.html>


More information about the Pharo-dev mailing list