Liste des Groupes | Revenir à cl c |
Bart <bc@freeuk.com> wrote:in fact when consider in mind or see on assembly level the>>
Then we disagree on what 'multi-way' select might mean. I think it means
branching, even if notionally, on one-of-N possible code paths.
OK.
>The whole construct may or may not return a value. If it does, then one>
of the N paths must be a default path.
>
You need to cover all input values. This is possible when there
is reasonably small number of possibilities. For example, switch on
char variable which covers all possible values does not need default
path. Default is needed only when number of possibilities is too
large to explicitely give all of them. And some languages allow
ranges, so that you may be able to cover all values with small
number of ranges.
>
Les messages affichés proviennent d'usenet.