Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Re: 1)analog #define in IDL? 2) get position of a window?
Michael Feigin,ARC Research Fellow,AS,951231 (feigin@saturn.gas.unsw.EDU.AU) wrote: : Dear colleagues, : 1. The problem is that it's necessary to define some variables in a IDL program : in such a way that allows easy to change them in the future. I understand : that it may be implemented via using COMMON BLOCKS but it's extremely poor : style. Why is it poor style? Anyway, the only other way I could think of doing this would be to have your variables defind in a file, say define.pro, as variable1= 23l variable2= 34d001 etc. and then use an @define.pro near the start of the routine to set them all up. Then you'd only need to edit define.pro to change their values. As to whether this is any nicer than common blocks...... Tim Patterson