Karim Belabas on Sat, 19 Sep 2009 23:55:33 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: TRY/CATCH is unnecessarily slow on OS X


* Bill Allombert [2009-09-19 21:28]:
> On Mon, Sep 14, 2009 at 09:40:02AM +0200, Lorenz Minder wrote:
> > Document output contexts.
> > 
> > diff --git a/doc/usersch4.tex b/doc/usersch4.tex
> > --- a/doc/usersch4.tex
> > +++ b/doc/usersch4.tex
> > @@ -1754,17 +1754,34 @@
> > +void (*putch)(char);           /* putc()-alike */
> > +void (*puts)(const char*);     /* fputs()-alike */
> > +void (*flush)(void);           /* flush function */
> > +void (*die)(void);             /* flush function for fatal errors */
>  
> Looking at the code die() is not used and appear only once:
> 
> src/language/init.c:  if (pariErr->die) pariErr->die();    /* Caller wants to catch exceptions? */
> 
> This seems a round-about way to catch exception...
> We should probably remove it once we have a proper cb_pari_err_recover.

Used by Math::Pari only. No idea whether Ilya still needs this.

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`