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

Home » Public Forums » archive » Re: .compile_opt strictarr is persistent?
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: .compile_opt strictarr is persistent? [message #50586 is a reply to message #50584] Mon, 09 October 2006 11:40 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mgalloy@gmail.com writes:

> Follow David's advice as above. I did try this because it seemed odd
> behavior you were describing. IDL does not complain if you have a
> compile_opt statement outside of any routine in a file. It will change
> the behavior of the main-level (but not the routines in the file). I
> think I will make a list sometime of the most dangerous things IDL will
> let you do.

Indeed, I stumbled onto this in an IDL programming class
I was teaching. But COMPILE_OPT STRICTARR in an IDL startup
file does wonders for re-programming the finger/brain
connections. :-)

Cheers,

David

P.S. Of course, the same thing is true of COMPILE_OPT DEFINT32.
VERY nice!

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Low pass filter - Problem with kernel
Next Topic: string functions and arrays

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

Current Time: Fri Oct 10 16:05:39 PDT 2025

Total time taken to generate the page: 0.31832 seconds