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

Home » Public Forums » archive » When Ptr_New doesn't work
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: When Ptr_New doesn't work [message #29016 is a reply to message #28954] Wed, 23 January 2002 11:13 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
"Pavel A. Romashkin" wrote:
>
> I think the key here is, anything in parenthesis gets *evaluated* and as
> such is an expression. And it is not really surprising that one is not
> allowed to assign a value to an expression. This is the strength of IDL
> - it creates temporary variables as expressions, and allows to use them
> just like named variables. Unlike, say, IGOR Pro that requres you to
> define a named variable to even plot it.
>

Right. Another example of parentheses forming an expression is:

IDL> a=(b=1)

which is the only way to do chained assignments.

But as for the necessity of this, compare Perl, where things like:

($first, $second, @rest)=make_list();

are allowed. But heh, it's IDL.

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: When Ptr_New doesn't work
Next Topic: Re: Does anybody know an 'undocumented IDL feature' that does this

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

Current Time: Fri Oct 10 16:36:06 PDT 2025

Total time taken to generate the page: 0.71968 seconds