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 #50713 is a reply to message #50699] Thu, 12 October 2006 01:04 Go to previous messageGo to previous message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
> OK, maybe it's weird. But I don't think it's necessarily
> "bad". I've even used the feature on occasion.

I fail to see how this "feature" could be used. If you call a function
as
value = FUNCTION(args)
and FUNCTION() returns an <UNDEFINED>, this will cause an error.

Of course, I'm not using my imagination enough. If you have a
procedure, and you're not feeling like using any normal error-handling
mechanism, you can simply define it as a function and execute it using
HELP, and use a HELP-parsing routine to determine if it ran correctly
or not. Is there an obfuscated IDL contest?
[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 13:11:25 PDT 2025

Total time taken to generate the page: 2.15942 seconds