[BUG] reading past end of non-disk files hangs Squeak
Ned Konz
ned at bike-nomad.com
Mon Aug 4 20:47:28 UTC 2003
Anyone see anything wrong with this?
s _ FileStream readOnlyFileNamed: '/proc/tty/driver/serial'.
s atEnd
=> true
s reset
s atEnd
=> true
s next
=> $s
s upTo: Character lf
=> 'erinfo:1.0 driver:5.05c revision:2001-07-08'
s atEnd
=> false
s reset
s atEnd
=> true
s upTo: Character lf
(repeat the #upTo: until Squeak hangs. Interrupt it.)
s atEnd
=> false
s position
=> 364
s next
=> nil
s atEnd
=> false
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|