Re: "Strong typing vs. strong testing"
- From: Terry Reedy <tjreedy@xxxxxxxx>
- Date: Fri, 01 Oct 2010 13:02:17 -0400
On 10/1/2010 2:28 AM, TheFlyingDutchman wrote:
Why do you consider the term "compile error" a "mandate to stopin C I can have a function maximum(int a, int b) that will always
work. Never blow up, and never give an invalid answer. If someone
tries to call it incorrectly it is a compile error.
I would agree that the third sentence is arguably wrong, simply
because there's no such thing (outside #error) of a mandate to stop
compiling. However, my understanding was that the dispute was over
the second sentence, and that's certainly correct.
compiling"? What do you say to refer to the situation when you have a
statement in your program that the compiler finds is an error? And is
it really material whether the compiler flagged an error and stopped,
or flagged an error and looked for additional errors???
For the purpose of the argument, I do not think it matters whether the compiler looks for additional errors before it stops compiling. More to to point is whether or not it eventually produces an object file that can be linked into an executable file. 'Compile error' (as opposed to 'compile warning') should mean that it does not.
--
Terry Jan Reedy
.
- Prev by Date: Re: sequence multiplied by -1
- Next by Date: Re: sequence multiplied by -1
- Previous by thread: Re: "Strong typing vs. strong testing"
- Next by thread: Re: "Strong typing vs. strong testing"
- Index(es):
Relevant Pages
|