Two basic questions. Thanks

The basics of how to develop, test, and use models.
Post Reply
ted
Site Admin
Posts: 6302
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Two basic questions. Thanks

Post by ted »

Dong Xu wrote:1. What does $o1 mean?
does it mean the first parameter in a func, as an object or a string?
$ means it's an argument
o means it's an object reference
1 means it's the first argument
More information about arguments is in the Programmer's Reference here
http://www.neuron.yale.edu/neuron/stati ... #arguments
General hoc syntax is discussed in this section of the Programmer's Reference
http://www.neuron.yale.edu/neuron/stati ... tml#syntax
2. what does & mean?
for example in

Code: Select all

section netcon = new NetCon(&v(x), target)
From the documentation of arguments in the Programmer's Reference:
"If the calling statement has a '&' prepended to the variable then it is passed by reference . . . "
but you should read the entire documentation of arguments.
Post Reply