Jeroen Demeyer on Wed, 17 Sep 2014 15:51:28 +0200

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

Re: Detecting whether PARI has been initialized

On 2014-09-17 15:43, Bill Allombert wrote:
On Wed, Sep 17, 2014 at 02:09:24PM +0200, Jeroen Demeyer wrote:
Dear pari-dev,

what is the recommended way to detect whether or not pari_init() has
already been called? This is useful for libraries which might
interact which other libraries which have initialized PARI.

I would say it is not recommended.
Are you saying that this is a useless feature request? Imagine one application linking to several libraries which all use PARI. How would you solve the problem that all those libraries try to call pari_init()?