help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to wrap "lighting phong;" with a mock funtion?


From: John W. Eaton
Subject: Re: How to wrap "lighting phong;" with a mock funtion?
Date: Mon, 14 May 2007 11:00:14 -0400

On 14-May-2007, David Bateman wrote:

| Andreas Romeyke wrote:
| > Hello Carlo,
| > 
| > Carlo de Falco schrieb:
| >>> probably you can use mark_as_command:
| >>>
| > The problem is, that mark_as_command only works outside of a function.
| > But I need it to define inside, because the testsuite is designed as
| > set of various functions.
| > 
| > If I try "mark_as_command" I got: warning: mark_as_command: invalid
| > use inside function body
| > and "iscommand lighting" returns 0 instead.
| > 
| > Do you have any additional hints?
| > 
| > Bye Andreas
| > 
| 
| 
| evalin ('base', 'mark_as_command("lighting")')

Or, just write

  lighting ('arg')

instead of

  lighting arg

in your code and avoid the parse error (though you will still need to
deal with the missing function problem).

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]