comp.lang.ada
 help / color / mirror / Atom feed
From: Ehud Lamm <mslamm@mscc.huji.ac.il>
Subject: Re: Simple Ada question
Date: 2000/05/22
Date: 2000-05-22T15:27:04+00:00	[thread overview]
Message-ID: <Pine.A41.3.96-heb-2.07.1000522182351.76284B-100000@pluto.mscc.huji.ac.il> (raw)
In-Reply-To: 392934E9.FA87156E@bton.ac.uk

On Mon, 22 May 2000, John English wrote:

|Ehud Lamm wrote:
|> 
|> Actually a student came to me saying "I found a compiler bug" it says that
|> i is not referenced, where as I clearly use it in the for loop....
|
|Which is why I think a more explicit warning might be a good thing:
|"loop index uses the same name as an existing object" or something
|like that (although I'm sure the wording could be improved...) since
|this is nearly always an indication of an error where the writer
|believes that the two names will refer to the same thing.
|

I agree. That's why I gave this example. 

On the other hand, learning to understand compiler messages is also
important.

Ehud Lamm mslamm@mscc.huji.ac.il
http://purl.oclc.org/NET/ehudlamm <== My home on the web 
Check it out and subscribe to the E-List- for interesting essays and more!

 






  parent reply	other threads:[~2000-05-22  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <8f8fm5$de5$1@news.uit.no>
2000-05-16  0:00 ` Simple Ada question Gisle S�lensminde
2000-05-16  0:00 ` Jeff Carter
2000-05-16  0:00 ` Robert A Duff
2000-05-18  0:00   ` John English
2000-05-21  0:00     ` Robert Dewar
     [not found]       ` <Pine.A41.3.96-heb-2.07.1000521193502.30412B-100000@pluto.mscc.huji.ac.il>
2000-05-22  0:00         ` John English
2000-05-22  0:00           ` David C. Hoos, Sr.
2000-05-22  0:00           ` Ehud Lamm [this message]
2000-05-16  0:00 ` tmoran
replies disabled

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