[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ROUTINE_NAMES and other magic
"J.D. Smith" <jdsmith@astro.cornell.edu> writes:
> Craig Markwardt wrote:
> >
> > One thing that ROUTINE_NAMES() (**note) cannot do is *add* variables
> > to another level. If the variable exists, then you can muck as much
> > as you want with it, but if it doesn't exist, sorry.
>
> I have been able to create variables on the $MAIN$ level with no problem.
> Perhaps you mean adding to non-$MAIN$ levels?
No, I meant any level. Using the example from before:
IDL> deepstop, 1
% Stop encountered: DEEPSTOP 2 /dev/tty
IDL> print, routine_names('deus_ex_machina', 1, store=1)
% ROUTINE_NAMES: Variable is undefined: deus_ex_machina.
% Execution halted at: DEEPSTOP 2 /dev/tty
% DEEPSTOP 3 /dev/tty
% $MAIN$
Am I doing something wrong here?
Craig
--
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------