Karim Belabas on Tue, 28 Nov 2023 09:27:33 +0100


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

Re: trying to find a simple command to list all global variables


* Bill Allombert [2023-11-28 09:19]:
> On Mon, Nov 27, 2023 at 04:24:10PM -0800, American Citizen wrote:
> > Hello:
> > 
> > I used the Okular search feature to step through the 675 page document
> > "https://pari.math.u-bordeaux.fr/pub/pari/manuals/2.15.4/users.pdf"; to see
> > if a command to list the global variables on the stack or heap is available.
> > 
> > Nothing turned up that I can see (I did the scan twice)
> > 
> > So how do you find what variables have become global?
> 
> You can do 
> \uv
> (x and y are always global).
> 
> but you can use gp2c -W which will tell you where a global variable appears.

A final possibility is variables().

Cheers,

    K.B.
-- 
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/