- Timestamp:
- Sep 4, 2024, 5:35:55 PM (4 months ago)
- Branches:
- master
- Children:
- 82a5ea2, 9bb6c5f
- Parents:
- 737bf73
- Location:
- doc/theses/jiada_liang_MMath
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/jiada_liang_MMath/Cenum.tex
r737bf73 r508cff0 87 87 \end{cfa} 88 88 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] 89 Note, \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] 91 92 \item[Change:] \CC objects of enumeration type can only be assigned values of the same enumeration type. 92 93 In C, objects of enumeration type can be assigned values of any integral type. … … 102 103 \item[How widely used:] Common. 103 104 \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
r737bf73 r508cff0 353 353 whereas C @const@ declarations without @static@ are marked @R@. 354 354 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] 355 The 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] 357 358 \item[Change:] In \CC, the type of an enumerator is its enumeration. 358 359 In C, the type of an enumerator is @int@. … … 370 371 Taking the size of an enumerator is not a common C coding practice. 371 372 \end{description} 373 \hfill ISO/IEC 14882:1998 (\CC Programming Language Standard)~\cite[C.1.5.7.2.6]{ANSI98:C++} 374 \end{cquote} 372 375 Hence, the values in a \CC enumeration can only be its enumerators (without a cast). 373 376
Note: See TracChangeset
for help on using the changeset viewer.