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

Home » Public Forums » archive » Re: Generating keyword parameters from strings
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: Generating keyword parameters from strings [message #67404 is a reply to message #67403] Mon, 27 July 2009 07:39 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
David Fanning wrote:
> Paul van Delst writes:
>
>> Of course it would be nicer if I didn't have to remember it at all. Passing
>> arguments/keywords by reference or value is an implementation detail the user shouldn't be
>> concerned with. Having to consider it in IDL OO programming is mildly ironic.
>
> I think you are forgetting the 80-year history
> of IDL. (Or is it 100? I can never remember.)

Oh no, I'm not forgetting. FORTRAN (which necessarily has a longer history than IDL) had
the same issue although it was a tacit understanding about passing mechanism. I assume IDL
has that restriction because FORTRAN did (IIRC, wasn't IDL orginally written in f77 [or
f66?] on a VMS system? But you would know more about that than me.).

Now that we have Fortran (not all caps, f90 and later) the passing mechanism can vary
based on situation - the compiler can choose the better method (for a suitable definition
of "better").

If you write f90+ code that depends on a particular passing mechanism it's not illegal (in
many cases at least), but you're asking for chunks to be removed from your read-end in the
future. It can suck for some MPI/F90+ amalgams since the former relies on passing by
reference whereas the latter does not.

So, Fortran grew out of the de-facto need to be particular about passing mechanism. I see
no reason why IDL can't. It certainly would make it easier for new users who wonder what
they've done wrong until they discover you can't pass arguments *out* from
procedures/functions when the actual arguments in the calling routine are array elements
or structure components.



cheers,

paulv
[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
Previous Topic: rIDL
Next Topic: Generating keyword parameters from strings

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

Current Time: Sat Nov 29 23:47:44 PST 2025

Total time taken to generate the page: 0.79916 seconds