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 #35113 is a reply to message #35032] Mon, 12 May 2003 13:00 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Rick Towler wrote:

>
> "Kenneth P. Bowman" wrote ...
>> "Rick Towler" 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:
>>
>
> I don't slow myself down by reading the docs. Sure, it may lead to some
> embarrassment along the way but it makes working with IDL much more
> exciting!Sheesh, you must be one of these people that actually reads the
> manual before he uncrates that new gizmo. :)
>
>
>> RESET_SESSION does not re-run the startup.pro file, does it?
>
> Unfortunately IDL doesn't re-run the startup.pro file when you reset your
> session. That has bit me a number of times :(
>
>
> -Rick

Does it help to add a @start_up into each critical source.

On the other hand if you set integer always to long this takes a lot of
memory for indexing of arrays. Or did you explicity write
a=5s if you like "a" to be a short integer.


Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[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: Fri Oct 10 07:45:22 PDT 2025

Total time taken to generate the page: 0.08457 seconds