stream upToAll leaves stream position in a different place than in Pharo

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

stream upToAll leaves stream position in a different place than in Pharo

Nick
I've created issue 216: http://code.google.com/p/glassdb/issues/detail?id=216


In Pharo:
    'http://vimeo.com/18375790' readStream upToAll: '.com/'; upToEnd.
results in:
    '18375790'

In Gemstone the same code results in:
    '.com/18375790'

This is caused by the stream position after #upToAll: . In Pharo the following:
    'http://vimeo.com/18375790' readStream upToAll: '.com/'; position
results in:
     17

In Gemstone the same code results in:  12