[bug] Kernel.ConcatenatedStream fails when re-positioned

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

[bug] Kernel.ConcatenatedStream fails when re-positioned

Holger Hans Peter Freyther-3
Issue status update for
http://smalltalk.gnu.org/node/696
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/696

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  zecke
 Updated by:   zecke
 Status:       active

The following code is working with a ReadStream but is failing with the
ConcatenatedStream.


st> (Kernel.ConcatenatedStream with: ('3' readStream)) next; position:
0; next: 1

Object: ConcatenatedStream new "<0x558b6810>" error: premature end of
stream: 1 element(s) missing
SystemExceptions.NotEnoughElements(Exception)>>signal
(ExcHandling.st:254)
SystemExceptions.NotEnoughElements class>>signalOn: (SysExcept.st:359)
Kernel.ConcatenatedStream(Stream)>>next:into:startingAt: (Stream.st:105)
Kernel.ConcatenatedStream(Stream)>>next: (Stream.st:73)
UndefinedObject>>executeStatements (a String:1)




_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] Kernel.ConcatenatedStream fails when re-positioned

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/696
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/696

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     bug reports
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  zecke
 Updated by:   bonzinip
 Status:       active

ConcatenatedStream is not very positionable. It is mostly a hack
optimized for performance.  I'm not sure we want to fix this...



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk