List all variables

Anything that doesn't fit elsewhere.
Post Reply
JimH
Posts: 54
Joined: Tue Apr 10, 2007 3:36 pm
Location: Duke University

List all variables

Post by JimH »

The following seems like it should be obvious, but I haven't been able to find it anywhere. How do I list all currently defined variables in the hoc interpreter?

Thanks,
Jim
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: List all variables

Post by ted »

In the list of hoc functions
http://www.neuron.yale.edu/neuron/stati ... #functions
please note
allobjects
allobjectvars
name_declared

Too bad symbols no longer works. However, if you create a graph, its "Plot what?" tool can be used to explore the potential name space.

Generally when I need to discover whether a name is already in use as a variable, I just type it at the oc> prompt and see whether the result is an "undefined variable" message, or grep for it in the relevant hoc source code. If I need to know the names of all procs, funcs, or objrefs, I just grep the file(s) of interest for proc, func, or objref.
Post Reply