Hello Waldek,
Attached is a little patch which changes error function to
'error3' and adds two extra paramters, that is constructor name
and function name.
You need to add definition of 'error3', for example:
error3(con, fun, mess) ==
errorSupervisor($AlgebraError, [STRCONC(con, '"$", fun, '": "), mess])
Note: to test patch 'compiler.boot' and read it. Then read
boot file with definition of 'error3'.
Thank you for that patch. That is really progress. And helps me a lot.
Looks good to me, at least.
I only think that it would be better to use
========
error3(con, fun, mess) ==
errorSupervisor($AlgebraError, [STRCONC(fun, '" $ ", con, '": "),
mess])
========
that is, spaces around $, and fun and con excanged.
I also saw that it might be possible that fun and/or con could be NIL. I
do not yet see where that could happen, but maybe for those cases the
code of error3 should be different. But, honestly, if STRCONC allows NIL
as argument, then the $ makes clear enough what is function name and
what constructor.
I'd be happy if this could make it into the next release.
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 view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/f553927f-e9c8-4dc3-953b-d4c70b311028%40hemmecke.org.