delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/02/24/04:33:14

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Tue, 24 Feb 2004 11:32:36 +0200 (EET)
From: Esa A E Peuha <peuha AT cc DOT helsinki DOT fi>
Sender: peuha AT sirppi DOT helsinki DOT fi
To: djgpp-workers AT delorie DOT com
Subject: Re: strtoul bug (was Re: Fibonacci number)
In-Reply-To: <403ADB4A.ED9F77C2@yahoo.com>
Message-ID: <Pine.OSF.4.58.0402241106430.15794@sirppi.helsinki.fi>
References: <d7c3a0b2 DOT 0402220759 DOT 34d6435d AT posting DOT google DOT com>
<4038E8CA DOT 6491815E AT virginia DOT edu> <4039DD96 DOT 3F36F3B7 AT yahoo DOT com>
<200402231458 DOT i1NEwKwm020904 AT envy DOT delorie DOT com> <403A301C DOT E8F5FE65 AT yahoo DOT com>
<200402231751 DOT i1NHp5lv022894 AT envy DOT delorie DOT com> <403A5F55 DOT 7E608910 AT yahoo DOT com>
<200402232034 DOT i1NKYqrt024366 AT envy DOT delorie DOT com> <403ADB4A DOT ED9F77C2 AT yahoo DOT com>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 24 Feb 2004, CBFalconer wrote:

> I still consider the acceptance of signs in the unsigned
> varieties to be an error,

It isn't an error.  Any valid string representation of a negative number
is still a valid representation of _a_ number, and all string conversion
functions must accept it as valid input, regardless of whether they can
actually convert it to their return type.

> TC 2.01 does NOT accept them! which seems sane, if non-conforming.

No, _that_ is insane.

-- 
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019