Bill Allombert on Fri, 27 Jul 2012 19:05:11 +0200


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

Re: Global persistent variables (compiled code)


On Fri, Jul 27, 2012 at 04:57:29PM +0200, Manolo wrote:
> 2012/7/26 Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>:
> 
> >
> > If you need global variables to be outside of the PARI stack, you can use gclone in C
> > (the clone function under GP2C).
> 
> Thanks BIll!
> 
> I've tested it and solves some problems, but not all of them. I can't
> give you a precise scenario of fail, but the cloned global variables
> suffer unexpected changes; I'll test my code more intensively.
> 
> > See the test file gp2c/test/gp/initfunc.gp
> 
> I've got it from source tar-file. In my Ubuntu-distribution this (and
> other similar files) are not included. It would be really easy put
> them on /usr/share/pari/examples or /usr/share/gp2c/examples ... Is
> this a matter of package maintainer?

Indeed, but you can just do 
apt-get source gp2c
and presto, you have the source tarball.
The test files were not really meant as example files.

Cheers,
Bill.