Re: What subprogram? What parameters and keywords? [message #85648 is a reply to message #85646] |
Fri, 23 August 2013 08:29   |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 8/23/13 8:50 am, fawltylanguage@gmail.com wrote:
> On Friday, August 23, 2013 4:35:56 PM UTC+2, Mark Piper wrote:
>
>> We're looking at introducing the equivalent of argc-argv, where
>> argv[0] is the name of the routine and argv[1-n] are the
>> parameters. Ronn Kling suggested that a list would be a good
>> container for this info. How about new intrinsic routines IDL_ARGC
>> and IDL_ARGV?
>
> We have keyword parameters, so a HASH seems to be more appropriate.
> #0 can be the routine name, #1, #2, ... the positional parameters.
>
> regards, Lajos
>
How about a hash for the keywords and a list for the positional parameters?
Would this also include syntax to allow writing a routine that takes an
arbitrary number of parameters?
Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Research Mathematician
Tech-X Corporation
|
|
|