Search found 52 matches

by bhalterm
Sat Feb 17, 2007 6:12 pm
Forum: Other questions
Topic: confused about execute()
Replies: 2
Views: 3206

confused about execute()

When running the code (at the bottom), I get the following error: the_number_ten not a public member of Ten /Users/benlhalt/NEURON/nrn/i686/bin/nrniv: Ten the_number_ten in Ten.hoc near line 17 {print this.the_number_ten} ^ Ten[0].execute("print this.the_number_ten", Ten[0]) Ten[0].print_ten() /User...
by bhalterm
Thu Jan 11, 2007 9:25 am
Forum: Other questions
Topic: OOP question
Replies: 5
Views: 3947

AH HAH!!! Thanks!
by bhalterm
Wed Jan 10, 2007 4:34 pm
Forum: Other questions
Topic: OOP question
Replies: 5
Views: 3947

Sorry, I was a little vague. I am trying to write a proc within the object that calls another object's proc with itself as one of the arguments. It's a common idiom in Java, so I was inclined to find a way to do this just out of habit. I can certainly find another way to do it. If I were to declare ...
by bhalterm
Wed Jan 10, 2007 12:31 am
Forum: Other questions
Topic: OOP question
Replies: 5
Views: 3947

OOP question

How can an object refer to itself? I tried to use "this" like I would in Java because I saw it done in the documentation for "unref" in the ObjectOrientedProgramming section, but the interpreter said it was an undeclared variable.
by bhalterm
Fri Dec 15, 2006 12:50 am
Forum: Other questions
Topic: confusion while debugging
Replies: 2
Views: 3249

confusion while debugging

I was having trouble debugging some hoc code, so finally I just copied the whole thing into another file (Debug.hoc, at the bottom of post) so I could remove everything that wasn't involved and isolate the problem. After lots of massaging, I pared the code down to the following example that demonstr...
by bhalterm
Fri Mar 10, 2006 12:41 pm
Forum: OS X
Topic: "Warning: no DISPLAY environment variable."
Replies: 4
Views: 12801

"Warning: no DISPLAY environment variable."

I just tried to install Neuron on my new intel mac. I followed the directions, and then realized I didn't have X11 installed yet when the gui didn't show up when I tried to run the demo. I had to install X11 from the disk, and had to reinstall the whole system with the custom X11 optional installati...
by bhalterm
Wed Mar 08, 2006 11:02 am
Forum: OS X
Topic: Compiling for OSX on Intel
Replies: 2
Views: 4913

no gui

I just tried to install Neuron on my new intel mac. I followed the directions, and then realized I didn't have X11 installed yet when the gui didn't show up when I tried to run the demo. I had to install X11 from the disk, and had to reinstall the whole system with the custom X11 optional installati...