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 #35037 is a reply to message #35036] Fri, 09 May 2003 08:59 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Kenneth P. Bowman" wrote
...
> In a procedure or function the default integer type can be changed from
> INT to LONG with
>
> COMPILE_OPT DEFINT32
>
> or
>
> COMPILE_OPT IDL2
>
> Is there any way to change the default integer type for interactive use
> or is explicit specification of the type the only solution?
>
> IDL> i = 32
> IDL> help, i
> I INT = 32
> IDL> i = 32L
> IDL> help, i
> I LONG = 32
>

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.

-Rick
[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: Thu Oct 09 19:56:30 PDT 2025

Total time taken to generate the page: 0.47930 seconds