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

Home » Public Forums » archive » Re: Code optimization
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: Code optimization [message #75134 is a reply to message #75116] Thu, 17 February 2011 01:14 Go to previous messageGo to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
On 02/16/2011 10:25 PM, kisCA wrote:
> the difference between
> [] and ().

The use of () to access indexes in arrays is allowed in IDL for
backwards compatibility but should now only be reserved for functions.
In your code, you can prevent any error by writing

COMPILE_OPT IDL2

at the very beginning of each function/procedure you write. Accessing
variable arrays with () will not compile.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Resizeable Graphics Windows for Traditional Commands
Next Topic: make strsplit not skip null between patterns

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

Current Time: Sat Oct 11 09:03:42 PDT 2025

Total time taken to generate the page: 1.27786 seconds