From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c6ca9cbe17b867c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: access & address Date: Fri, 15 Oct 2004 10:18:31 +0200 Organization: AdaCL Message-ID: <2386872.fbrU22jjjA@linux1.krischik.com> References: <1c2f5137.0410140105.66fdb23e@posting.google.com> <1347924.5V7QhTSfdI@linux1.krischik.com> <17721214.dJnt8f0cAJ@linux1.krischik.com> <416ED78A.2D4B939E@yahoo.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1097829269 03 29278 ESkRXU0JELkgPuX 041015 08:34:29 X-Complaints-To: usenet-abuse@t-online.de X-ID: X7TfEBZQZeF4HkDikFXsMFkzqj+uzKy3Z97Od40GZIjEWc7QJMc3o+ User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5243 Date: 2004-10-15T10:18:31+02:00 List-Id: 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