Changeset 6071efc for doc/theses/andrew_beach_MMath/existing.tex
- Timestamp:
- Jun 16, 2021, 10:44:22 AM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- edebbf7
- Parents:
- b51e389c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/existing.tex
rb51e389c r6071efc 10 10 11 11 Only those \CFA features pertaining to this thesis are discussed. 12 Also, only new features of \CFA will be discussed, a basicfamiliarity with12 Also, only new features of \CFA will be discussed, a familiarity with 13 13 C or C-like languages is assumed. 14 14 … … 88 88 Operator uses are translated into function calls using these names. 89 89 These names are created by taking the operator symbols and joining them with 90 @?@ where the arguments wouldgo.90 @?@s to show where the arguments go. 91 91 For example, 92 92 infixed multiplication is @?*?@ while prefix dereference is @*?@. … … 95 95 96 96 \begin{cfa} 97 int ?+?(point a, point b) { return point{a.x + b.x, a.y + b.y}; }97 point ?+?(point a, point b) { return point{a.x + b.x, a.y + b.y}; } 98 98 bool ?==?(point a, point b) { return a.x == b.x && a.y == b.y; } 99 99 {
Note: See TracChangeset
for help on using the changeset viewer.