projects
/
matthijs
/
master-project
/
report.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b01be2e
)
Note the use of tuples for hierarchic state.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 3 Dec 2009 17:23:51 +0000
(18:23 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Thu, 3 Dec 2009 17:23:51 +0000
(18:23 +0100)
Chapters/HardwareDescription.tex
patch
|
blob
|
history
diff --git
a/Chapters/HardwareDescription.tex
b/Chapters/HardwareDescription.tex
index 04b660b4db682bc889bc258cf8c14a58475fbfe0..f5c0eaa59722a62d7783c769df97df4486ae2691 100644
(file)
--- 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
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
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