From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <20010905212441.26349.qmail@g.bio.cse.psu.edu> To: 9fans@cse.psu.edu Subject: Re: [9fans] weird print(2) problems... In-Reply-To: Message from "Russ Cox" of "Wed, 05 Sep 2001 17:11:10 EDT." <20010905211114.7A030199DD@mail.cse.psu.edu> From: Scott Schwartz Date: Wed, 5 Sep 2001 17:24:41 -0400 Topicbox-Message-UUID: ea47cc0c-eac9-11e9-9e20-41e7f4b1d025 | We can dive into heuristics | ad nauseum, but I think we're just stuck | with the overload until everyone switches | to a language with tupled return values | like Limbo. If you don't mind changing old code (and I think it's fair to say that Plan 9 fans are selected for that) you could return -2 for EOF, or return -1 and check errstr, or have the read library function return the length via a pointer argument and return +/0/- for ok/eof/err, or something along those lines.