|
|
last edited 11 years ago by test1 |
1 2 3 4 5 6 7 8 9 10 11 12 | ||
Editor: Bill Page
Time: 2008/05/11 06:47:05 GMT-7 |
||
Note: new |
changed: - j is referenced out of scope \begin{axiom} for i in 1..5 repeat j:Integer := i^2 output(i::OutputForm)$OutputPackage output(j::OutputForm)$OutputPackage \end{axiom} The above code snippet returns an error in OpenAxiom 1.2.0 (Revision >= 563). It sould be written like this: \begin{axiom} j: Integer for i in 1..5 repeat j := i^2 output(i::OutputForm)$OutputPackage output(j::OutputForm)$OutputPackage \end{axiom}
j is referenced out of scope
axiomfor i in 1..5 repeat j:Integer := i^2 output(i::OutputForm)$OutputPackage 1 2 3 4 5
axiomoutput(j::OutputForm)$OutputPackage 25
The above code snippet returns an error in OpenAxiom? 1.2.0 (Revision >= 563).
It sould be written like this:
axiomj: Integer
axiomfor i in 1..5 repeat j := i^2 output(i::OutputForm)$OutputPackage 1 2 3 4 5
axiomoutput(j::OutputForm)$OutputPackage 25