comp.lang.ada
 help / color / mirror / Atom feed
From: "Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca>
Subject: Re: Another ammunition
Date: Tue, 31 Dec 2002 11:40:40 -0500
Date: 2002-12-31T11:40:40-05:00	[thread overview]
Message-ID: <3E11C888.1060102@cogeco.ca> (raw)
In-Reply-To: aus3vq$k57$1@s1.read.news.oleane.net

Jean-Pierre Rosen wrote:
> "Eric G. Miller" <egm2.NOSPAM@jps-NOSPAM.net> a �crit dans le message news: IpfQ9.4953
>>>It took a week to understand what was happenning. Would not have passed the
>>>first compilation in Ada. FWIW...
>>
>>You're right, but I'm sure gcc could have immediately diagnosed the
>>problem had you turned up the warnings ("conflicting types for...", "previous
>>declaration of ...").
> 
> Warnings were on, he just overlooked them....
> That's what makes a huge difference between a warning which is up to the good will of the compiler (and the programmer paying
> attention to it), and a *required* compile time error!
> 
> (count that as another moral of the story).

Things may be different now, but I once had a long email discussion
with one of the folks about whether a missing return "type" should
be a warning or not (it should actually be an error). At the time,
you had to specify a compile option to make a declaration like:

foo() { ... }

return a warning. It should be something like:

int foo () { ... }

if it does indeed return int.

Well, he didn't like the idea of the warning being on by default,
and so people continue to get burned by this very problem.

-- 
Warren W. Gay VE3WWG
http://home.cogeco.ca/~ve3wwg




  parent reply	other threads:[~2002-12-31 16:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-31 10:23 Another ammunition Jean-Pierre Rosen
2002-12-31 11:43 ` Eric G. Miller
2002-12-31 12:57   ` Jean-Pierre Rosen
2002-12-31 16:23     ` Alexander Schreiber
2003-01-02  6:55       ` AG
2003-01-01 16:58         ` Alexander Schreiber
2003-01-07 12:54           ` Peter Hermann
2003-01-07 13:21           ` Richard Riehle
2003-01-11 18:29             ` Alexander Schreiber
2003-01-13  2:11               ` u.r. faust
2003-01-12 12:44                 ` Larry Kilgallen
2003-01-14  1:24                   ` Georg Bauhaus
2003-01-03  9:50         ` Jean-Pierre Rosen
2003-01-03 15:24         ` Stephen Leake
2002-12-31 16:40     ` Warren W. Gay VE3WWG [this message]
2003-01-04 20:17       ` David Thompson
2003-01-06 17:39         ` Warren W. Gay VE3WWG
2003-01-06 20:50           ` Stephen Leake
2003-01-06 22:16             ` Warren W. Gay VE3WWG
2003-01-07 18:37               ` Stephen Leake
2003-01-07 21:55                 ` Warren W. Gay VE3WWG
2003-01-01  9:05 ` Michael Erdmann
2003-01-07 13:03   ` Peter Hermann
replies disabled

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