comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Return UNDEFINED from a function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Return UNDEFINED from a function [message #50693 is a reply to message #50692] Thu, 12 October 2006 12:54 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Thu, 12 Oct 2006 12:21:47 -0600, Jean H. wrote:

> In this case, what would be the interest in keeping a function rather
> than a procedure? ... the result of the function, if defined, is of
> prime interest... with this method one would have to run the function a
> 2nd time in order to get the result value.
>
> I guess on could do
> proName,args, result
>
> If args are defined, n_elements(results) will be > 0 (with all the
> proper checks in the procedure, so **nothing** is done if args are missing.

I admit it's not the most useful thing (it would be much more useful
if UNDEFINED were a valid variable type, which could be assigned to
other variables), but that doesn't mean there's no conceivable better
use.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: call_procedure with a dynamically created keywords list?
Next Topic: Re: difference between icontour and contour?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 07:43:04 PDT 2025

Total time taken to generate the page: 1.20383 seconds