octave-maintainers
[Top][All Lists]
Advanced

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

Re: Testing for function handles


From: John W. Eaton
Subject: Re: Testing for function handles
Date: Wed, 9 Nov 2011 16:58:37 -0500

On  9-Nov-2011, Juan Pablo Carbajal wrote:

| I could work on the implementation of a function to check for
| function_handle. I would do something like what is done for ischar,
| src/strfns.cc line 297. I have noticed that there is already a
| is_function_hanlde in octave_values, so it is just a matter of
| defining the function.

Yes, that's what I would do.  The args(0).is_defined () part of that
function is probably not needed.

| Now, where is the place for such a function? and Would you call it
| is_function_handle or isfunhandle or something alike?

I think it should be called is_function_handle.  The file
ov-fcn-handle.cc is probably a good place for it.

jwe


reply via email to

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