|
[Sponsors] |
December 30, 2004, 11:33 |
ti-menu-... in (define... = error?
|
#1 |
Guest
Posts: n/a
|
I guess this question relates to the behavior of ti-menu-load-string inside a Scheme definition.
This trivial example works (it closes a graphics window): (ti-menu-load-string "/display/close-window 1") and it also seems to leave a boolean as its result. But this doesn't: (define shell (ti-menu-load-string "/display/close-window 1") ) (shell) It closes the graphics window then gives this error and dies: Error: eval: invalid function Error Object: #t I think the Scheme eval procedure is choking on the boolean that ti-menu... returns, and somehow I need to eliminate it, but that's just a guess. Big thanks for any help for this new user! |
|
December 30, 2004, 14:36 |
Re: ti-menu-... in (define... = error?
|
#2 |
Guest
Posts: n/a
|
Whoops - found it - I should have said
(define (shell)... instead of (define shell .... Just a newcomer's mistake. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
c++ libraries and solver compiling | vaina74 | OpenFOAM Installation | 13 | February 3, 2012 17:43 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 06:42 |
How to get the max value of the whole field | waynezw0618 | OpenFOAM Running, Solving & CFD | 4 | June 17, 2008 05:07 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 17:38 |