Re: Impossible to exit a $MAIN$ program [message #69702] |
Mon, 01 February 2010 07:54 |
MarioIncandenza
Messages: 231 Registered: February 2005
|
Senior Member |
|
|
On Jan 31, 8:49 pm, JD Smith <jdtsmith.nos...@yahoo.com> wrote:
> In performing a bit of IDLWAVE cleanup, I noticed something I hadn't
> seen before (but which explains an annoyance I'd always had when
> working with $MAIN$ routines): there is no apparent way to return from
> a $MAIN$ program.
JD,
Yes, this is extra-annoying in this specific case, which happens to me
ALL THE TIME:
I am working with a file ROUTINE.PRO in IDLWAVE, and that file is $MAIN
$. At a certain point, I decide to branch the file, so I do a 'Save
As...', and now I am modifying ROUTINE2.PRO. At the command line, I
write out a command, which has a syntax error. IDL tells me the error
has returned me to $MAIN$, and LO AND BEHOLD, the IDLWAVE editing
window now contains ROUTINE.PRO. This can be very disruptive, as I
usually don't notice until I've got two files, ROUTINE and ROUTINE2,
neither of which is the original and neither of which is the completed
branch.
I think that compiling ROUTINE2.PRO immediately after I create it
would spare me this... now I just have to remember to do it...
--Edward H.
|
|
|