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

Home » Public Forums » archive » Re: wrapper functions
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: wrapper functions [message #50500 is a reply to message #50499] Thu, 05 October 2006 17:52 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dometz writes:

> Hah, I see... is there a way that I wont have to define the positional
> parameters since otherwise I will have to check again which ones were
> passed in?
>
> Example
> READ_PICT, Filename, Image [, R, G, B]
>
> so, here I would have to check if R was passed in, if G was passed in,
> if B was passed in to see if I need to include them in the call inside
> of the wrapper function.

If you don't want to rely on the error handling of the
routine you are writing the wrapper for, you need to
check the required positional parameters (filename,
and image in this case). I would define the optional
positional parameters, but I wouldn't bother checking
them, since the routine you are calling will do that.
(At least if it is written half-way decently. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: executing a string in VM without using 'EXECUTE'
Next Topic: reading .mat files in IDL

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

Current Time: Fri Oct 10 06:36:07 PDT 2025

Total time taken to generate the page: 0.55542 seconds