[Mumps2Py:] [43] local variable version of setindexedvars.mps |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 43
Author: pgallot
Date: 2008-01-21 20:35:14 +0000 (Mon, 21 Jan 2008)
Log Message:
-----------
local variable version of setindexedvars.mps
Added Paths:
-----------
trunk/testfiles/setindexedlocalvars.mps
Added: trunk/testfiles/setindexedlocalvars.mps
===================================================================
--- trunk/testfiles/setindexedlocalvars.mps (rev 0)
+++ trunk/testfiles/setindexedlocalvars.mps 2008-01-21 20:35:14 UTC (rev 43)
@@ -0,0 +1,14 @@
+ set a(1,43,5,99)="TEST"
+ set ship("1ST FLEET","BOSTON","FLAG")="CONSTITUTION"
+ set captain(ship("1ST FLEET","BOSTON","FLAG"))="JONES"
+ set home(captain(ship("1ST FLEET","BOSTON","FLAG")))="PORTSMOUTH"
+ write ship("1ST FLEET","BOSTON","FLAG"),!
+ ; ... CONSTITUTION
+ write captain("CONSTITUTION"),!
+ ; ... JONES
+ write home("JONES"),!
+ ; ... PORTSMOUTH
+ write home(captain("CONSTITUTION")),!
+ ; ... PORTSMOUTH
+ write home(captain(ship("1ST FLEET","BOSTON","FLAG"))),!
+ ; ... PORTSMOUTH