Code: Select all
nrn_load_dll("nrnmech2.dll")
xopen("$(NEURONHOME)/lib/hoc/stdrun.hoc")
create dend
dend insert h
The interesting thing occurs when the order of the first two lines is reversed. When stdrun.hoc is loaded before the dll, the interpreter generates a syntax error on/near the insert statement.
We suspected that there might be a name collision (ie a previous use of the variable name "h") but
1. h is an undefined variable
2. the output of allobjectvars() does not indicate that any object with that name is created in the chain of events of opening stdrun.hoc
3. name_declared("h") returns 1, but that return value is ambiguous according to the documentation.
It is not a problem inserting mechanisms with names other than "h".
What is sensitive to sequencing?
Brad