Re: switch() Statement Question



"*** T. Winter" <***.Winter@xxxxxx> writes:
[...]
The C standard is the only standard I know that tries to state
something about conformance. But as seen, it is difficult to state
exactly what the requirements are for an implementation to be
conformant. In *all* other languages I know there is in the
standard no statement at all about minimal requirements. There is
one exception: Ada. There it is required that a compiler properly
compiles a set of predefined programs, but as that set changes over
time, this also is variable.

I would have thought that conformance is what a standard is all about.
Perhaps you're using the term in a different sense than I'm thinking
of.

The C++ standard has similar wording to the C standard regarding what
is or is not a conforming implementation, though in a quick search I
couldn't find anything resembling C's "one program" rule.

Ada has a set of validation tests that all conforming implementations
are required to pass. The test suite is based on the standard, but
the standard doesn't mention the test suite, and there are procedures
for challenging individual tests, either because they violate the
standard or because they exceed the implementation's capacity (in the
latter case, the test is sometimes split, and the implementation is
expected to pass each sub-test). The Ada standard has some weasel
wording about "the capacity of the implementation".

I think the whole attempt to define conformance is likely to fail.
It belongs more to quality of implementation.

I think you're using the term "conformance" to refer specifically to
issues of capacity restrictions, yes?

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.