[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ROUTINE_NAMES and other magic
- Subject: Re: ROUTINE_NAMES and other magic
- From: "R.Bauer" <R.Bauer(at)fz-juelich.de>
- Date: Tue, 18 Apr 2000 18:23:50 +0200
- Newsgroups: comp.lang.idl-pvwave
- Organization: Forschungszentrum Juelich GmbH
- References: <on3dokl8a2.fsf@cow.physics.wisc.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:19339
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.
You can add variables to another level.
Try this!
PRO DEEPSTOP, level
IF level EQ 1 THEN BEGIN
level = ROUTINE_NAMES(/LEVEL)
varName = 'A'
void = ROUTINE_NAMES(varName, STORE=(level+1), 8)
ENDIF
IF level EQ 2 THEN begin
print,a
STOP
end
deepstop, level + 1
END
IDL> deepstop,1
IDL> 8
IDL> % Stop encountered: DEEPSTOP 9