🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2149

Re: should abs() be 'uint'?

#2149
From: Paul Eggert
Date: Mon, 28 Sep 1992 18:06
10 lines
912 bytes
uddeborg@sisu.se (Goeran Uddeborg) writes:

>In article <Bv7uL7.2IK@zoo.toronto.edu> henry@zoo.toronto.edu (Henry Spencer) writes:
>>It would make sense.  Unfortunately, that's not the way abs() was defined
>>originally... and changing it now might break a lot of code.

>It could hardly break a lot of code, could it?

Henry Spencer's right.  Under the proposed change `abs(0) <= -1' would yield 1.
This kind of non-mathematical behavior might well break things.
Technical Details
Message-ID: <bj?yscFZ@twinsun.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!ucivax!ucla-cs!twinsun!eggert
References: <eyal.717552134@ise> <Bv7uL7.2IK@zoo.toronto.edu> <1992Sep28.162422.26386@sics.se>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!ucivax!ucla-cs!twinsun!eggert
From: eggert@twinsun.com (Paul Eggert)
Subject: Re: should abs() be 'uint'?
Message-ID: <bj?yscFZ@twinsun.com>
Sender: usenet@twinsun.com
Nntp-Posting-Host: farside
Organization: Twin Sun, Inc
References: <eyal.717552134@ise> <Bv7uL7.2IK@zoo.toronto.edu> <1992Sep28.162422.26386@sics.se>
Date: Mon, 28 Sep 1992 18:06:17 GMT
Lines: 10