Why do you say so ?
I can fileOut, then fileIn without a problem.
To me, this is not a bug. This is a feature.
Source ! are doubled so as not to be confused with chunk separators, it's an
escaping sequence like doubles quotes in String

'here''s another example which is not a bug'

Nicolas

2011/7/18 Stéphane Ducasse <stephane.duca...@inria.fr>

> Yes I know.
> To me, saving a method should make sure that we can reload it and this is
> not the case.
> So to me this is a bug.
>
> try to fileout
>
> getPreambleFrom: aFileStream at: position
>        |  writeStream |
>        writeStream := String new writeStream.
>        position to: 0 by: -1 do: [ :p |
>                        | c |
>                        aFileStream position: p.
>                        c := aFileStream basicNext.
>                        c == $!
>                                ifTrue: [^ writeStream contents reversed]
>                                ifFalse: [writeStream nextPut: c]]
>
>
> :)
>
> I do not see why the system should not save it correctly even if !! is used
> as a chunk separator.
>
> Stef
>
>
> On Jul 18, 2011, at 4:55 PM, Lukas Renggli wrote:
>
> > !! Is the escaping of a single ! (like '' is the escaping of ' in a
> > string), because the ! Is used to separate junks.
> >
> > Lukas
> >
> > On Monday, 18 July 2011, stephane ducasse <stephane.duca...@free.fr>
> wrote:
> >> Hi
> >>
> >> with veronica we found a fun bug.
> >> If you have a method with a $! and you file it out. you get $!! in the
> fileouted file.
> >>
> >>        http://code.google.com/p/pharo/issues/detail?id=4531
> >>
> >> Stef
> >>
> >
> > --
> > Lukas Renggli
> > www.lukas-renggli.ch
> >
>
>
>

Reply via email to