Changeset 41c4b5e for doc/theses


Ignore:
Timestamp:
May 14, 2024, 6:17:44 PM (7 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
73da8df, fbc84ca
Parents:
ccfbfd9
Message:

updates related to introduction chapter changes

Location:
doc/theses/jiada_liang_MMath
Files:
2 edited

Legend:

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

    rccfbfd9 r41c4b5e  
    4545Statically initialized identifiers may appear in any constant-expression context, \eg @case@.
    4646Dynamically initialized identifiers may appear as array dimensions in @g++@, which allows variable-sized arrays on the stack.
    47 Again, this form of aliasing to primary constant is not an enumeration.
     47Again, this form of aliasing is not an enumeration.
    4848
    4949
  • doc/theses/jiada_liang_MMath/relatedwork.tex

    rccfbfd9 r41c4b5e  
    423423
    424424\section{Golang}
     425\label{s:Golang}
    425426
    426427Golang has a no enumeration.
     
    10681069
    10691070Python is a dynamically-typed reflexive programming language with multiple versions, and hence, it is possible to extend existing or build new language features within the language.
    1070 As a result, discussing Python enumerations is a moving target, because if a features does not exist, if can often be created with varying levels of complexity.
    1071 Nevertheless, an attempt has been made to discuss core enumeration features that come with Python 3.13.
     1071As a result, discussing Python enumerations is a moving target, because if a features does not exist, it can often be created with varying levels of complexity within the language.
     1072Nevertheless, the following is a discuss of the core enumeration features that come with Python 3.13.
    10721073
    10731074A Python enumeration type is a set of ordered scoped identifiers (enumerators) bound to \emph{unique} values.
     
    10811082class Week(Enum): Mon = 1; Tue = 2; Wed = 3; Thu = 10; Fri = @auto()@; Sat = 4; Sun = @auto()@
    10821083\end{python}
    1083 where @auto@ increments by 1 from the previous enumerator value.
     1084where @auto@ increments by 1 from the previous enumerator value \see{Golang \lstinline[language=Go]{iota}, \VRef{s:Golang}}.
    10841085Object initialization and assignment are restricted to the enumerators of this type.
    10851086An enumerator initialized with same value is an alias and invisible at the enumeration level, \ie the alias it substituted for its aliasee.
     
    11081109\end{cquote}
    11091110
    1110 As an enumeration is a \lstinline[language=python]{class}, its own methods.
     1111An enumeration \lstinline[language=python]{class} can have methods.
    11111112\begin{python}
    11121113class Week(Enum):
Note: See TracChangeset for help on using the changeset viewer.