Changeset c21f5a9 for doc/theses/andrew_beach_MMath/features.tex
- Timestamp:
- May 20, 2021, 10:53:21 AM (2 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 090a7c5
- Parents:
- 77f1265
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/features.tex
r77f1265 rc21f5a9 150 150 It is important to note that these are virtual members, not virtual methods 151 151 of object-orientated programming, and can be of any type. 152 However, since \CFA has function pointers and they are allowed, virtual 153 members can be used to mimic virtual methods. 152 \CFA still supports virtual methods as a special case of virtual members. 153 Function pointers that take a pointer to the virtual type will be modified 154 with each level of inheritance so that refers to the new type. 155 This means an object can always be passed to a function in its virtual table 156 as if it were a method. 154 157 155 158 Each virtual type has a unique id.
Note: See TracChangeset
for help on using the changeset viewer.