Changeset 7568e5c for doc/theses/jiada_liang_MMath/conclusion.tex
- Timestamp:
- Aug 8, 2024, 10:39:40 PM (13 hours ago)
- Branches:
- master
- Children:
- acab1bd
- Parents:
- c1c0efdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/jiada_liang_MMath/conclusion.tex
rc1c0efdb r7568e5c 50 50 enum( wchar_t * ) { Jack = L"John" }; 51 51 \end{cfa} 52 \item 53 Currently enumeration scoping is all or nothing. 54 In some cases, it might be useful to increase the scoping granularity to individual enumerators. 52 There are several new features have been proposed or are developing in parallel with enumerations. 53 Two closely related features are iterator and namespace. 54 55 Enumerating features, and range loops in particular, are currently implemented as loops unique to \CFA enumeration and do not align with the 56 general iterator pattern. They can be adapted to the iterator interface when it comes to maturity. 57 58 Currently, \CFA implements a namespace feature for enumerated types only. There is recently a proposal by Andrew to 59 generalize the concept of namespace to other types. The enumeration scope will be revisited to follow the same semantics 60 as other types. Also to improve the granularity of scope control, we propose the following extension: 55 61 \begin{cfa} 56 62 enum E1 { @!@A, @^@B, C };
Note: See TracChangeset
for help on using the changeset viewer.