diff options
-rw-r--r-- | scopetest.prn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scopetest.prn b/scopetest.prn new file mode 100644 index 0000000..c85596f --- /dev/null +++ b/scopetest.prn @@ -0,0 +1,21 @@ +@defun "localedit"{ + 2 "somevar" store + "should be 2: " print somevar print lf +} +@defun "globaledit"{ + 2 "somevar" gstore + "should be 2: " print somevar print lf +} +@defun "makex"{ + 42 "x" gstore + "stored " x + " in x" + print lf +} + +1 "somevar" store +"should be 1: " print somevar print lf +localedit +"should be 1: " print somevar print lf +globaledit +"should be 2: " print somevar print lf +makex +"globally, x = " x + print lf |