Updates:
Status: Accepted
Cc:
[hidden email]
Comment #11 on issue 2228 by marianopeck: don't try to set the position of
the file if it's not possible
http://code.google.com/p/pharo/issues/detail?id=2228Well this change was basically to move from:
theFile position: filePositionHi.
theFile position > theFile size ifTrue: [
self error: 'RemoteString past end of file' ].
^ theFile nextChunkText
to
filePositionHi > theFile size ifTrue: [
self error: 'RemoteString past end of file' ].
^theFile
position: filePositionHi;
nextChunkText
so that the position is set only when valid.
Now...in squeak Levente only did it for #text and not for #string and
#fileStream.
Do you know if they are also necessary? In don't undersatnd why the "
filePositionHi > theFile size ifTrue: " is only for #text in squeak.
Shouldn't it be the same for #string and #fileStream ?
If nobody answer I can prepare a slide with that I think could be ...
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker