From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <003e7da79c09489e15f99daaae69ed32@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: Error reporting (Was: [9fans] GNU Make) Date: Thu, 3 Jun 2004 18:03:53 +0100 From: rog@vitanuova.com In-Reply-To: <2131834db7e388c1421257a88de93231@vitanuova.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 944dc078-eacd-11e9-9e20-41e7f4b1d025 > at any rate, it should be easier to see now why trying hard to change > things to make APE happy is not likely to produce the hoped-for joy and contentment. to be honest i wasn't really thinking about the APE world. i was thinking about how programs in the plan 9/inferno world might find out about particular classes of error that they care about. this: nonexistent(e: string): int { errs := array[] of {"does not exist", "directory entry not found"}; for (i := 0; i < len errs; i++){ j := len errs[i]; if (j <= len e && e[len e-j:] == errs[i]) return 1; } return 0; } is not good enough.