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

Home » Public Forums » archive » Re: Defining constants in IDL?
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: Defining constants in IDL? [message #31315 is a reply to message #31314] Fri, 21 June 2002 19:31 Go to previous messageGo to previous message
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
Dominic Zarro <dzarro@yahoo.com> wrote:
> IDL is very forgiving. Just define a constant to be any name and set its
> value. For example,
>
> IDL> a = 100
>
> Just be careful not to redefine and, hence, overwrite the variable 'a'.

The problem with this approach is that it is only visible within one
particular file. There's no mechanism akin to C's header files for
getting a constant into multiple source files, something I frequently find
myself missing. You can work around this using common blocks, but that's
has its own problems. Perhaps the best solution is user-defined system
variables but even that seems rather kludgy.

- Marshall
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Delvar?
Next Topic: Re: write_jpeg and TVRD()

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

Current Time: Thu Oct 16 01:27:25 PDT 2025

Total time taken to generate the page: 3.12047 seconds