Changeset 35672 in project


Ignore:
Timestamp:
06/22/18 21:57:31 (3 months ago)
Author:
sjamaan
Message:

porting guide: Add note about read-string behaviour at EOF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/porting-c4-to-c5

    r35663 r35672  
    55manually compile the source components at first before finishing up
    66the egg itself.
     7
     8Please read it through and if you hit any issues not in this document
     9which you think are important to note, add them to this page.  It's a
     10wiki after all!  With your additions you'll be saving others from the
     11same pain.
    712
    813If you prefer to first fix the egg's compilation infrastructure,
     
    323328
    324329
     330=== Fixing more subtle issues
     331
     332Then, there are some semantic changes.  These are of course listed in
     333the {{NEWS}} file, but let's take a look at some of the more important
     334ones:
     335
     336
     337==== read-string returns {{#!eof}} instead of {{""}} at end of file
     338
     339The title says it all: The
     340[[/man/5/Module (chicken io)#read-string|read-string]] procedure
     341now returns {{#!eof}} when the end of file is hit, instead of an
     342empty string.  This is more consistent and allows one to distinguish
     343between a successful read of zero characters and an exhausted file
     344descriptor.
     345
     346This is listed first because it's quite tricky and can cause very
     347subtle bugs, so be very careful about this one in particular.
     348I hope you have a good test suite! :)
     349
     350
    325351=== Re-packaging eggs
    326352
Note: See TracChangeset for help on using the changeset viewer.