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 #50499 is a reply to message #50498] Thu, 05 October 2006 18:14 Go to previous messageGo to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
<language_lawyer>

> (At least if it is written half-way decently. :-)
I disagree, procedures should not use N_ELEMENTS() to check for
UNDEFINED positional parameters. It should be presumed that the
positional parameters are defined according to the documentation,
anything else should throw an error.

If you want to write a procedure which has more relaxed conditions then
I would recommend using keywords.

Don't most IDL procedures use N_PARAMS() to check for positional
parameters?
This means that there is a difference between calling
READ_PICT, Filename, Image, R, G, B
and
READ_PICT, Filename, Image
regardless of whether R,G,B are defined or not

</language_lawyer>
[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: Wed Oct 08 19:58:02 PDT 2025

Total time taken to generate the page: 0.00397 seconds