List all variables

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

List all variables

Post by JimH » Thu Aug 30, 2012 4:05 pm

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?


Site Admin
Posts: 5686
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: List all variables

Post by ted » Thu Aug 30, 2012 4:46 pm

In the list of hoc functions ... #functions
please note

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