Define a primitive data type: Difference between revisions
Frink
Puppydrum64 (talk | contribs) m (omit from assembly) |
(Frink) |
||
Line 985:
<pre>
i = 10 j = 3 k = 4 j + 6 = 9 j + k = 7
</pre>
=={{header|Frink}}==
<lang frink>oneToTen[x] := isInteger[x] AND x >= 1 AND x <= 10
var y is oneToTen = 1
while (true)
{
println[y]
y = y + 1
}</lang>
{{out}}
<pre>
1
2
3
4
5
6
7
8
9
10
Error: BasicContext: Cannot set symbol y, ContextFrame threw exception:
Constraint not met: function oneToTen[11] returned false.
In expression:
y = y + 1
</pre>
|