From: Matthijs Kooijman Date: Thu, 3 Dec 2009 17:23:51 +0000 (+0100) Subject: Note the use of tuples for hierarchic state. X-Git-Tag: final-thesis~109 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=commitdiff_plain;h=78b70074b6d6829b4bb3912fc4a18ec2f29cf270 Note the use of tuples for hierarchic state. --- diff --git a/Chapters/HardwareDescription.tex b/Chapters/HardwareDescription.tex index 04b660b..f5c0eaa 100644 --- a/Chapters/HardwareDescription.tex +++ b/Chapters/HardwareDescription.tex @@ -804,7 +804,9 @@ acc in s = (s', out) has to somehow know the current state for these called functions. The only way to do this, is to put these \emph{substates} inside the caller's state. This means that a function's state is the sum of the - states of all functions it calls, and its own state. + states of all functions it calls, and its own state. This sum + can be obtained using something simple like a tuple, or possibly + custom algebraic types for clarity. This also means that the type of a function (at least the "state" part) is dependent on its own implementation and of the functions it