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

Home » Public Forums » archive » Re: New Object Method Invocation Syntax Brokenness
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: New Object Method Invocation Syntax Brokenness [message #76129 is a reply to message #76123] Mon, 16 May 2011 18:09 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 16, 7:35 pm, JDS <jdtsmith.nos...@yahoo.com> wrote:
> My understanding is compile_opt idl2 alleviates this particular undesirable feature of the newly ambiguated syntax, though I'm not eager to go back and insert it for thousands of methods, or develop methods to discover potential brokenness.  I suppose talk of enabling idl2 by default died off; I'd be in favor of it.  It would break old code, but in a well-controlled and presumably well-advertised way.
>
> By the way, this behavior seems to have been introduced in 8.0.1.   I believe the short lived IDL 8.0 respected the arrow operator.

I just dug out an old idl 8.0 and can confirm it already had that
behavior. In a more obvious manifestation of the problem:

IDL> a={b:0,c:1.0}
IDL> help,a->c(0)
<Expression> FLOAT = 1.00000

Since there was never any discussion about using -> for structures,
and this only seems to be undesirable, as JD mentioned, to me it looks
like a bug. The main argument against making idl2 assumed by default
was to keep compatibility, so this seems unintended. A side effect of
some other change to the parser, which went unnoticed.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: map_proj_init
Next Topic: Re: Error when using !NULL as a property value. Bug or feature?

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

Current Time: Wed Oct 08 15:28:52 PDT 2025

Total time taken to generate the page: 0.00401 seconds