Issue 4531 in pharo: fileouting method with a $!, produces $!!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 4531 in pharo: fileouting method with a $!, produces $!!

pharo
Status: Accepted
Owner: [hidden email]

New issue 4531 by [hidden email]: fileouting method with a $!,  
produces $!!
http://code.google.com/p/pharo/issues/detail?id=4531

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.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4531 in pharo: fileouting method with a $!, produces $!!

pharo

Comment #1 on issue 4531 by [hidden email]: fileouting method with a  
$!, produces $!!
http://code.google.com/p/pharo/issues/detail?id=4531

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]]


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4531 in pharo: fileouting method with a $!, produces $!!

pharo

Comment #2 on issue 4531 by [hidden email]: fileouting method with a  
$!, produces $!!
http://code.google.com/p/pharo/issues/detail?id=4531

It has always been like this since st80 days. It is normal for a ! in  
source code to be doubled !! on output since it is an escape sequence. You  
should check if you can reload the method. If not, the bug is on reading,  
not on writing.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4531 in pharo: fileouting method with a $!, produces $!!

pharo

Comment #3 on issue 4531 by [hidden email]: fileouting method with a  
$!, produces $!!
http://code.google.com/p/pharo/issues/detail?id=4531

Ok I finally got it. I was not filling it because I could not because the  
classes were removed. So I was copied and pasting a cs.

Now to me changing the code is a bad idea. So let us close it now and I  
want to throw away all the chunk format in the future.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 4531 in pharo: fileouting method with a $!, produces $!!

pharo
Updates:
        Status: Closed

Comment #4 on issue 4531 by [hidden email]: fileouting method with a  
$!, produces $!!
http://code.google.com/p/pharo/issues/detail?id=4531

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker