Ignore:
Timestamp:
Sep 5, 2024, 3:57:05 PM (2 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
29c8675
Parents:
ad47ec4 (diff), 508cff0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
doc/theses/jiada_liang_MMath
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/jiada_liang_MMath/Cenum.tex

    rad47ec4 r9bb6c5f  
    8787\end{cfa}
    8888
    89 Note, \CC has the same safe restriction~\cite[C.1.5.7.2]{C++} and provides the same workaround cast.
    90 \begin{description}[parsep=0pt]
     89Note, \CC has the same safe restriction and provides the same workaround cast:
     90\begin{cquote}
     91\begin{description}[leftmargin=*,topsep=0pt,itemsep=0pt,parsep=0pt]
    9192\item[Change:] \CC objects of enumeration type can only be assigned values of the same enumeration type.
    9293In C, objects of enumeration type can be assigned values of any integral type.
     
    102103\item[How widely used:] Common.
    103104\end{description}
     105\hfill ISO/IEC 14882:1998 (\CC Programming Language Standard)~\cite[C.1.5.7.2.5]{ANSI98:C++}
     106\end{cquote}
  • doc/theses/jiada_liang_MMath/relatedwork.tex

    rad47ec4 r9bb6c5f  
    353353whereas C @const@ declarations without @static@ are marked @R@.
    354354
    355 The following \CC non-backward compatible change is made~\cite[C.1.5.7.2]{C++}, plus the safe-assignment change shown in~\VRef{s:TypeSafety}.
    356 \begin{description}[parsep=0pt]
     355The following \CC non-backward compatible change is made, plus the safe-assignment change shown in~\VRef{s:TypeSafety}.
     356\begin{cquote}
     357\begin{description}[leftmargin=*,topsep=0pt,itemsep=0pt,parsep=0pt]
    357358\item[Change:] In \CC, the type of an enumerator is its enumeration.
    358359In C, the type of an enumerator is @int@.
     
    370371Taking the size of an enumerator is not a common C coding practice.
    371372\end{description}
     373\hfill ISO/IEC 14882:1998 (\CC Programming Language Standard)~\cite[C.1.5.7.2.6]{ANSI98:C++}
     374\end{cquote}
    372375Hence, the values in a \CC enumeration can only be its enumerators (without a cast).
    373376
Note: See TracChangeset for help on using the changeset viewer.