#1212: .eof returns false if last read call read the last byte of the file, but
not beyond
----------------------+-----------------------------------------------------
 Reporter:  jonathan  |       Owner:     
     Type:  RFC       |      Status:  new
 Priority:  normal    |   Milestone:     
Component:  core      |     Version:     
 Severity:  medium    |    Keywords:     
     Lang:            |       Patch:     
 Platform:            |  
----------------------+-----------------------------------------------------

Comment(by cotto):

 The approach of providing a dumb eof for FileHandle and letting users
 build on top of it makes sense to me and seems preferable to trying to
 dtrt while avoid unexpected costs and side-effects.  I updated the
 description of the relevant functions in 8c0d19cc9 so that anyone reading
 them will be made aware of their potentially surprising behavior.  I'll
 leave this ticket open in case anyone wants to argue for a smarter fh.eof,
 but if nobody responds within 2 week we can consider the matter closed.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1212#comment:9>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to