[Nickle] Exception for reading past EOF?

Keith Packard keithp at keithp.com
Thu Feb 7 21:32:41 PST 2008

So, I'm thinking that reading past EOF on a file should generate an
exception instead of returning -1 from getc. This would mean that anyone
using -1 to detect EOF would suddenly start crashing instead, but it
would also mean that applications accidentally failing to check would
get terminated instead of looping.

We love semantic changes; is this a good one?

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/nickle/attachments/20080207/5681a0a6/attachment.pgp 

More information about the Nickle mailing list