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

Home » Public Forums » archive » IDL killer
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: IDL killer [message #43006 is a reply to message #42199] Mon, 14 March 2005 07:56 Go to previous messageGo to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
David Fanning wrote:
> m_schellens@hotmail.com writes:
>
>> ++(((a=1))=3)
>
> I think it must be a general rule by now that any time
> you fail to have a LHS of an expression in IDL (by, for
> example, putting the RHS in parentheses and thereby
> making it a temporary variable) there is an excellent
> chance you will crash IDL. Just on the face of it,
> I would guess there must be an almost unlimited
> number of these expressions.

Well, I am sure it also crashes with other values,
what makes it almost infinite :-)

But here we DON'T fail to have a LHS!

IDL> help,(((a=1))=3)
A INT = 3


> I'm not so sure this is a bug as much as it is a peek
> into the underlying structure of the IDL code. In any
> case, I'm not surprised by it any longer.

Even though I would call it a bug, there is hardly a
case where such a construct would make sense (please post
whoever can think of one).
Generally assignment expressions shouldn't be alowed on LHS
of expressions.

Ah, did I mention that GDL (http://gnudatalanguage.sf.net)
refuses them, but does not crash :-)

Cheers,
marc
[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
Read Message
Read Message
Read Message
Previous Topic: Re: Modal dialog - returning values
Next Topic: GDL?

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

Current Time: Wed Oct 08 17:03:37 PDT 2025

Total time taken to generate the page: 0.00458 seconds