tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
15
Task/Scope-modifiers/MUMPS/scope-modifiers.mumps
Normal file
15
Task/Scope-modifiers/MUMPS/scope-modifiers.mumps
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
OUTER
|
||||
SET OUT=1,IN=0
|
||||
WRITE "OUT = ",OUT,!
|
||||
WRITE "IN = ",IN,!
|
||||
DO INNER
|
||||
WRITE:$DATA(OUT)=0 "OUT was destroyed",!
|
||||
QUIT
|
||||
INNER
|
||||
WRITE "OUT (inner scope) = ",OUT,!
|
||||
WRITE "IN (outer scope) = ",IN,!
|
||||
NEW IN
|
||||
SET IN=3.14
|
||||
WRITE "IN (inner scope) = ",IN,!
|
||||
KILL OUT
|
||||
QUIT
|
||||
Loading…
Add table
Add a link
Reference in a new issue