Changeset 08061589 for doc/user


Ignore:
Timestamp:
Jul 31, 2016, 7:06:22 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
182fe1e
Parents:
057b34f
Message:

more case statement cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/user/user.tex

    r057b34f r08061589  
    1010%% Author           : Peter A. Buhr
    1111%% Created On       : Wed Apr  6 14:53:29 2016
    12 %% Last Modified By : Peter A. Buhr
    13 %% Last Modified On : Wed Jul 13 08:14:39 2016
    14 %% Update Count     : 1247
     12%% Last Modified By :
     13%% Last Modified On : Sun Jul 31 07:27:55 2016
     14%% Update Count     : 1254
    1515%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    1616
     
    17781778and there is only a medium amount of fall-through from one ©case© clause to the next, and most of these result from a list of case values executing common code, rather than a sequence of case actions that compound.
    17791779\end{itemize}
    1780 These observations help to put the suggested changes to the ©switch© into perspective.
     1780These observations help to put the \CFA changes to the ©switch© into perspective.
    17811781\begin{enumerate}
    17821782\item
     
    17881788still work.
    17891789Nevertheless, reversing the default action would have a non-trivial effect on case actions that compound, such as the above example of processing shell arguments.
    1790 Therefore, to preserve backwards compatibility, it is necessary to introduce a new kind of ©switch© statement, called ©choose©, with no implicit fall-through semantics and an explicit fall-through if the last statement of a case-clause ends with the new keyword ©fallthru©, e.g.:
     1790Therefore, to preserve backwards compatibility, it is necessary to introduce a new kind of ©switch© statement, called ©choose©, with no implicit fall-through semantics and an explicit fall-through if the last statement of a case-clause ends with the new keyword ©fallthrough©/©fallthru©, e.g.:
    17911791\begin{lstlisting}
    17921792®choose® ( i ) {
     
    43424342
    43434343
     4344\section{New Keywowrds}
     4345
     4346©catch©, ©catchResume©, ©choose©, \quad ©disable©, ©dtype©, \quad ©enable©, \quad ©fallthrough©, ©fallthru©, ©finally©, ©forall©, ©ftype©, \quad ©lvalue©, \quad ©otype©, \quad ©throw©, ©throwResume©, ©trait©, ©try©
     4347
     4348
    43444349\section{Incompatible}
    43454350
Note: See TracChangeset for help on using the changeset viewer.