Changeset 865249a for doc/refrat
- Timestamp:
- Sep 19, 2015, 8:32:30 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- a188b16
- Parents:
- ce6c57c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/refrat/refrat.tex
rce6c57c r865249a 4086 4086 case 1~5: 4087 4087 \end{lstlisting} 4088 The multiple subranges are allowed:4088 Multiple subranges are allowed: 4089 4089 \begin{lstlisting} 4090 4090 case 1~4, 9~14, 27~32: 4091 4091 \end{lstlisting} 4092 4093 The \lstinline$case$ and \lstinline$default$ clauses are restricted within the \lstinline$switch$ 4094 and \lstinline$choose$ statements, precluding Duff's device. 4092 The \lstinline$case$ and \lstinline$default$ clauses are restricted within the \lstinline$switch$ and \lstinline$choose$ statements, precluding Duff's device. 4095 4093 4096 4094 … … 4112 4110 choose ( E ) ... 4113 4111 \end{lstlisting} 4114 may have more than one interpretation, but it shall have only one interpretation with an integral 4115 type. An \Index{integer promotion} is performed on the expression if necessary. The constant 4116 expressions in \lstinline$case$ statements with the switch are converted to the promoted type.4112 may have more than one interpretation, but it shall have only one interpretation with an integral type. 4113 An \Index{integer promotion} is performed on the expression if necessary. 4114 The constant expressions in \lstinline$case$ statements with the switch are converted to the promoted type. 4117 4115 4118 4116 … … 4122 4120 The \lstinline$choose$ statement is the same as the \lstinline$switch$ statement except control transfers to the end of the \lstinline$choose$ statement at a \lstinline$case$ or \lstinline$default$ labeled statement. 4123 4121 The \lstinline$fallthru$ statement is used to fall through to the next \lstinline$case$ or \lstinline$default$ labeled statement. 4124 4125 4122 The following have identical meaning: 4126 4123 \begin{flushleft} … … 4147 4144 \end{tabular} 4148 4145 \end{flushleft} 4149 The \lstinline$choose$ statement addresses the problem of accidental fall-through associated with 4150 the \lstinline$switch$ statement. 4146 The \lstinline$choose$ statement addresses the problem of accidental fall-through associated with the \lstinline$switch$ statement. 4151 4147 4152 4148 … … 4182 4178 \end{syntax} 4183 4179 4184 Labeled \lstinline$continue$ and \lstinline$break$ allow useful but restricted control-flow that 4185 reduces the need for the \lstinline$goto$ statement for exiting multiple nested control-structures. 4180 Labeled \lstinline$continue$ and \lstinline$break$ allow useful but restricted control-flow that reduces the need for the \lstinline$goto$ statement for exiting multiple nested control-structures. 4186 4181 \begin{lstlisting} 4187 4182 L1: { // compound
Note: See TracChangeset
for help on using the changeset viewer.