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

Home » Public Forums » archive » Re: Default interactive integer type
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: Default interactive integer type [message #35036 is a reply to message #35035] Fri, 09 May 2003 09:31 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <b9gjau$20sa$1@nntp6.u.washington.edu>,
"Rick Towler" <rtowler@u.washington.edu> wrote:

>> Is there any way to change the default integer type for interactive use
>> or is explicit specification of the type the only solution?
> Sure! Just issue the compiler option in your main session:
>
> IDL> i=1
> IDL> help,i
> I INT = 1
> IDL> compile_opt IDL2
> IDL> i=1
> IDL> help, i
> I LONG = 1
>
> This will stick until you reset your IDL session.


Duh!

I guess I can be forgiven since the docs say:

"The COMPILE_OPT statement allows the author to give the IDL compiler
information that changes some of the default rules for compiling the
function or procedure within which the COMPILE_OPT statement appears."

So does everyone have

COMPILE_OPT IDL2

in their startup.pro?

RESET_SESSION does not re-run the startup.pro file, does it?

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL random number generator
Next Topic: ROI with IDLanROI & IDLgrROI

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

Current Time: Sat Oct 11 11:27:31 PDT 2025

Total time taken to generate the page: 0.19418 seconds