On Sunday 12 October 2003 07:09, Stavros Macrakis wrote:
SM>
SM> > However texmacs-maxima complains about "wrong" syntax in
SM> > "genut" the function ZEROLISTP(list):=
SM> > catch(for exp in list do if exp#0 then throw(false), true)$
SM> > meets problems for interpreter. Note, there is no such a
SM> > problem for console or emacs maxima sessions.
SM> > Besides I failed to find construction like "for exp in list"
SM> > in maxima manual. Is it possible to replace it with some
SM> > standard one?
SM>
SM> Could you please describe how exactly to reproduce this problem? I am
SM> not sure what you mean that zerolistp "meets problems for interpreter".
In console maxima I have
(D6) ZP(LIST) := CATCH(FOR EXP IN LIST DO (IF EXP # 0 THEN THROW(FALSE)),
TRUE)
(C7) ZP([]);
(D7) TRUE
(C8) ZP([l]);
(D8) FALSE
In maxima texmacs session
(C3) ZP(list) := catch(for exp in list do (if exp#0 then throw(false) else
true)$
Incorrect syntax: in is an unknown keyword in a DO statement.
:= catch(for exp in
^
Incorrect syntax: DO is not an infix operator
list do
^
So the problem perhaps is in texmacs interface
In experimenting I found that to load(facexp) within texmacs I have to
assign bothcases:false. That is strange enough because before I tried to
rewrite the ZEROLISTP(list) function in upper letters but without result and
I only succeded when disable bothcases globally at the start.
Thanks,
rgds,
Valery