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
List all variables
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: List all variables
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.
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.