Changeset 1dfe6a6 for doc

Ignore:
Timestamp:
Jan 13, 2021, 11:37:05 AM (7 months ago)
Branches:
arm-eh, jacob/cs343-translation, master
Children:
101cc3a
Parents:
91571e5 (diff), 26ca815 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
doc/theses/andrew_beach_MMath
Files:
1 added
1 edited

Unmodified
Added
Removed
• doc/theses/andrew_beach_MMath/existing.tex

 r91571e5 the the call site. As an example, even if no function named \codeCFA{do\_once} is not defined near the definition of \codeCFA{do\_twice} the following code will work. As an example, even if no function named \codeCFA{do_once} is not defined near the definition of \codeCFA{do_twice} the following code will work. \begin{lstlisting} int quadruple(int x) { \end{lstlisting} This is not the recommended way to implement a quadruple function but it does work. The complier will deduce that \codeCFA{do\_twice}'s T is an does work. The complier will deduce that \codeCFA{do_twice}'s T is an integer from the argument. It will then look for a definition matching the assertion which is the \codeCFA{do\_once} defined within the function. That function will be passed in as a function pointer to \codeCFA{do\_twice} and assertion which is the \codeCFA{do_once} defined within the function. That function will be passed in as a function pointer to \codeCFA{do_twice} and called within it. In \CFA coroutines are created using the \codeCFA{coroutine} keyword which works just like \codeCFA{struct} except that the created structure will be modified by the compiler to satify the \codeCFA{is\_coroutine} trait. modified by the compiler to satify the \codeCFA{is_coroutine} trait. These structures act as the interface between callers and the coroutine,
Note: See TracChangeset for help on using the changeset viewer.