Trying to see what Maxima allows with
the go (label) statement.
The Manual says ok if inside block (?).
What about inside block + inside do loop,
as in:
--------------------------------------
trygo(k) := block([b:2],
for i: 1 thru 3 do (
k : k + b,print("k = ",k),
if k > 4 then (print("k>4"), go (end)),
k : k*b,print("k = ",k),
end,
print ("i = ",i," k = ",k)
)
)$
-------------------
with output/complaint:
(%i32) trygo(1);
k = 3
k = 6
i = 1 k = 6
k = 8
k>4
`go' not in `block':
end
#0: trygo(k=1)(ch1p3.mac line 192)
-- an error. To debug this try debugmode(true);
-----------
Ted Woollett
win xp, 5.13a