@@ -19,17 +19,17 @@ test it on the <a href="cgi-bin/cduce">online interpreter</a>.
<boxtitle="Advanced programming"link="sel">
<p>
The fact that reference types are encoded rather than primitives have some advantaes. Noteworthy is the fact that our encoding allows the programmer to modify the default beahvior of the <code>get</code> and <code>set</code> functions can be modified. So a programmer can define a reference that whenever is read, records the access in a log file, or it performs some sanity checks before performing a writing.
The fact that reference types are encoded rather than primitive brings some advantages. Among these it is noteworthy that thanks to the encoding the default beahvior of the <code>get</code> and <code>set</code> functions can be modified. So a programmer can define a reference that whenever is read, records the access in a log file, or it performs some sanity checks before performing a writing.
</p>
<p>
For instance ... (write some code here of the form
For instance the following template program, shows a way to define a reference to an integer that whenver is read performs some extra code, while whenever is written performs some checks and may raise an exception: