Ralf Hemmecke wrote:
>
> I'm used to parametrized macros. Are they available in SPAD?
>
Not in FriCAS. They are on my todo list...
> The following program seems to suggest NO, but it also seems to contain
> a bug, since it compiles with X which is nowhere defined.
>
I will look at this -- compiler can behave stangely on wrong
code.
> Can I somehow get paremetrized macros like in Aldor? According to the
> Axiom book (Chapter 6.2) parametrized macros should be available, but I
> guess that only applies to the interpreter.
Yes, currently only in interpreter. There is a workaround which
I used in few places:
fooz ==> 2*z
fooz where z ==> x^2
that is omit parameter list when defining macro, and then provide
parameters using 'where'. Not nice, but helps if macro body is
large.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.