On Thu, Mar 28, 2024 at 03:15:46AM +0100, Ralf Hemmecke wrote:
> > That is easy, we have things like
> > 
> >      error "makeSketch: constant polynomial"
> > 
> > That is, include function name as part of error message.
> 
> We should, maybe, more often use the two argument error function.
> 
> https://github.com/fricas/fricas/blob/master/src/algebra/error.spad#L47

Hmm, have you used them?  Documentation say "callable from the system
interpreter".  'error' is built into Spad compiler and it is not
clear to me if you can call any other 'error'.  Also, if you
managed to call them it is not clear if they would for as expected.

And finally, what is gain from giving function name as a separate
argument?  AFAICS in Spad one needs to specify it anyway, so can be part
of error message.

-- 
                              Waldek Hebisch

-- 
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/ZgTcLQ_84VxgrPWU%40fricas.org.

Reply via email to