Hi Waldek,
I think I've a little problem in translating boot to spad.
Can you translate this little function for me?
mathprintWithNumber x ==
ioHook("startAlgebraOutput")
x:= outputTran x
maprin
$IOindex => ['EQUATNUM,$IOindex,x]
x
ioHook("endOfAlgebraOutput")
In particular, I'd be interested in how to access $IOindex. The rest I
can probably do.
This here is probably a bit more difficult.
print(x,domain) ==
dom:= devaluate domain
$InteractiveMode: local:= true
$dontDisplayEquatnum: local:= true
output(x,dom)
since any use of these local variables affect the behaviour of
output(...), but is not set globally. I don't yet have a good idea how
to mimick that except to add these local values as new parameters of the
"output" function.
Actually, in a first approach I simply wanted to create a package that
has in it's add body all the functions of i-output.spad and they would
simply be defined by a $Lisp call to the respective code from
i-output.boot. I.e, i would define
SPADoutputTran(x: OutputForm): OutputForm ==
mathPrint(x)$Lisp pretend OutputForm
and then little by little replace all the lisp calls.
Question: would I have to use another name for the spad function or can
it be identical to the boot function name? I.e. can I safely drop the
SPAD prefix in the above snippet?
Ralf
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.