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

Home » Public Forums » archive » Re: dealing with arguments
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: dealing with arguments [message #71118] Wed, 02 June 2010 15:12 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
Use keywords instead of positional arguments:

pro name, mode, s1=s1, s2=s2

That way, when calling the routine you can use any order, or omit any
argument, and they still get associated to the right variables. Also
consider replacing s1 and s2 by more descriptive names, to make it
easier for users to know what the arguments mean. With keywords, you
can still use the short names inside your routine:

pro name, mode, some_argument_name_1=s1, some_other_argument=s2
[Message index]
 
Read Message
Read Message
Previous Topic: Re: FOR loop ends one above where it's supposed to
Next Topic: dealing with arguments

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

Current Time: Wed Oct 08 19:02:03 PDT 2025

Total time taken to generate the page: 0.00576 seconds