From a170db330a49475bb7e42f22f78eb8036a3d168d Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Fri, 2 Jun 2017 14:13:54 +0200 Subject: [PATCH] update methods --- methods.mtask.tex | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/methods.mtask.tex b/methods.mtask.tex index 891cfb7..48f8844 100644 --- a/methods.mtask.tex +++ b/methods.mtask.tex @@ -101,15 +101,16 @@ class boolExpr v where \end{lstlisting} \section{Control flow} -Looping of \glspl{Task} happens because \glspl{Task} are launched at regular -intervals or relaunch themselves. Therefore there is no need for loop control -flow functionality such as \emph{while} or \emph{for} constructions. The main -control flow is the sequence operator and the \emph{if} statement. Both are -shown in Listing~\ref{lst:control}. The first class of \emph{If} statements -describe the regular \emph{if} statement. The expressions given can have any -role. The functional dependency on \CI{s} determines the return type of the -statement. The sequence operator is very straightforward and just ties the two -expressions together in sequence. +Looping of \glspl{Task} happens because \glspl{Task} are executed after waiting +a specified amount of time or when they are launched by another task or even +themselves. Therefore there is no need for loop control flow functionality such +as \emph{while} or \emph{for} constructions. The main control flow is the +sequence operator and the \emph{if} statement. Both are shown in +Listing~\ref{lst:control}. The first class of \emph{If} statements describe the +regular \emph{if} statement. The expressions given can have any role. The +functional dependency on \CI{s} determines the return type of the statement. +The sequence operator is very straightforward and just ties the two expressions +together in sequence. \begin{lstlisting}[% language=Clean,label={lst:control},caption={Control flow operators}] -- 2.20.1