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

Home » Public Forums » archive » 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 #50615 is a reply to message #50504] Fri, 06 October 2006 14:06 Go to previous messageGo to previous message
Dominic Metzger is currently offline  Dominic Metzger
Messages: 30
Registered: August 2006
Member
Hey Ken,

Yeah, I am still trying to find a solution that will allow my to write
more or less completely transparent wrappers. Not quite there yet... or
in other words havent figured out to what extend this is possible or
not.

thanks for your input!

dometz


Kenneth Bowman wrote:
> In article <MPG.1f8f75b654670c76989d07@news.frii.com>,
> David Fanning <davidf@dfanning.com> wrote:
>
>> Kenneth P. Bowman writes:
>>
>>> I find that N_PARAMS() with SWITCH is very handy for setting defaults in
>>> procedures where optional positional parameters make sense.
>>>
>>> PRO BLAH, A, B, C
>>>
>>> SWITCH N_PARAMS() OF
>>> 0 : A = ...
>>> 1 : B = ...
>>> 2 : C = ...
>>> ENDSWITCH
>>
>> In thinking about it, I guess I use N_ELEMENTS for
>> all my parameters because I can throw better errors
>> since I know *exactly* which parameter is missing:
>
> As I said, this is only useful in cases where optional positional parameters
> makes sense. That is, where some positional parameters are optional AND they
> have a logical ordering such that you can pass A, or A and B, or A and B and C,
> but not A and C or B and C. In that case, keyword parameters make more sense.
>
> And, of course, KEYWORD_SET should only be used with binary keyword parameters,
> that is, parameters that are set like this: /KEYWORD.
>
> Ken
[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
Read Message
Previous Topic: .compile_opt strictarr is persistent?
Next Topic: Re: call_procedure with a dynamically created arguments list?

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

Current Time: Mon Oct 13 11:09:36 PDT 2025

Total time taken to generate the page: 1.28062 seconds