comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: access & address
Date: Fri, 15 Oct 2004 10:18:31 +0200
Date: 2004-10-15T10:18:31+02:00	[thread overview]
Message-ID: <2386872.fbrU22jjjA@linux1.krischik.com> (raw)
In-Reply-To: 416ED78A.2D4B939E@yahoo.com

CBFalconer wrote:

> Martin Krischik wrote:
>>
> ... snip ...
>> 
>> I sure C++. All I have to say is:
>> 
>> unsigned A = -1;
>> char B = 256;
>> 
>> If you are very very luck your compiler will warn you.
> 
> We recently had an unholy row about this in c.l.c, as applied to
> the error returns from strtoul().

Only the error returns are wacky? 

"followed by a single  optional `+' or `-' sign."

What do you need a '-' in 'unsigned long int'? And it even gets better:

"The strtoul() function returns either the result of the conversion or, if
there was a leading minus sign,  the negation  of the result of the
conversion, unless the original (non-negated) value would overflow;"

Which negative valued in 'unsigned long int'?

You don't need to answer - there where just rethoric question. It's just
that my opinion on C has hit a new all time low.

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




  reply	other threads:[~2004-10-15  8:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14  9:05 access & address Hans Van den Eynden
     [not found] ` <1347924.5V7QhTSfdI@linux1.krischik.com>
     [not found]   ` <ckm14i$erb2@cui1.lmms.lmco.com>
2004-10-14 18:09     ` Martin Krischik
2004-10-14 20:13       ` CBFalconer
2004-10-15  8:18         ` Martin Krischik [this message]
     [not found]     ` <2t7jm8F1sp752U1@uni-berlin.de>
2004-10-14 18:17       ` Martin Krischik
2004-10-14 19:52         ` Xenos
2004-10-15  8:53           ` Martin Krischik
2004-10-15 17:30             ` Xenos
2004-10-16 14:25               ` Martin Krischik
2004-10-16 15:15                 ` Rich Herrick
2004-10-15 15:46           ` Björn Persson
2004-10-15 17:09             ` Xenos
2004-10-17 23:38               ` Björn Persson
2004-10-18  7:42                 ` Martin Krischik
2004-10-14 19:37       ` Xenos
2004-10-15  8:30         ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox