<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 5/14/2014 12:46 AM, Treutwein Bernhard wrote:<br>
<blockquote
cite="mid:78A8BD6765DCF048A628A51C3FBD1D761891C834@MXS2.zuv.uni-muenchen.de"
type="cite">
<blockquote type="cite" style="color: #000000;">
<pre wrap="">If not, are declared variables initialized to a default value?
</pre>
</blockquote>
<pre wrap="">as far as I know, this is deliberately unspecified.
</pre>
</blockquote>
From the component pascal documentation<br>
<br>
"Local variables whose types are pointer types or procedure types
are initialized to NIL before the body of the procedure is executed"<br>
<br>
"A module is a collection of declarations of constants, types,
variables, and procedures, together with a sequence of statements <b>for
the purpose of</b> assigning initial values to the variables."<br>
<br>
"Variables declared in a module are cleared prior to the execution
of the module body. This implies that all pointer or procedure typed
variables are initialized to NIL"<br>
<br>
That's it.<br>
One nice thing about the MAINSAIL language was the concept that each
data type had a Zero and that all initial values of the data were
Zero.<br>
<br>
-Doug Danforth<br>
</body>
</html>