I worked quite a few hours on that, but don't have it
yet, amongst other things since I ran into two
other Maxima bugs:
I have to use "batch" to see what happens.
Now the two attached files show to nasty
bugs.
---------------------
1. With the first file "Batch.mac" Maxima hangs,
and one has to kill it:
(%i1) batch("Batch.mac");
batching /home/csoliver/SAT-Algorithmen/OKplatform/Batch.mac
(%i2) for x in [1,2,3] do print(x)
1
2
3
Evaluation took 0.0000 seconds (0.0002 elapsed) using 4.250 KB.
(%o2) done
Where in Batch.mac we have
for x in [1,2,3] do print(x);
(with an additional space after the semicolon).
2. And with the second file "Unless.mac" Maxima shows a
parse failure and thus ignores the function "fun":
(%i1) batch("Unless.mac");
batching /home/csoliver/SAT-Algorithmen/OKplatform/Unless.mac
(%i2)
Maxima encountered a Lisp error:
CAR: $FOUND is not a list
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
Evaluation took 0.0040 seconds (0.0015 elapsed) using 36.633 KB.
(%o3) "Unless.mac"
(%i4) fun(false);
Evaluation took 0.0000 seconds (0.0000 elapsed) using 232 bytes.
(%o4) fun(false)
where in Unless.mac we have:
fun(found) := for x in [1,2,3] unless found do print(x);
---------------------
These failures are with 5.16.3 and with ECL as well as with CLisp.
Oliver
On Tue, Sep 02, 2008 at 10:34:11PM -0600, Robert Dodier wrote:
> On 9/2/08, Oliver Kullmann <O.Kullmann at swansea.ac.uk> wrote:
>
> > I cannot present a small example; I could extract the functions, and
> > send it in a file: At the end it shouldn't be too big (max 50 lines
> > I guess), but it nevertheless will cost my some time, and so I would
> > only do so if somebody really wanted to investigate the case.
>
> Well, if you can supply the example, it would be very helpful.
> I am interested to get ECL + Maxima working.
>
> Robert Dodier
-------------- next part --------------
for x in [1,2,3] do print(x);
-------------- next part --------------
fun(found) := for x in [1,2,3] unless found do print(x);