From 8fe47981847f8c72aef7d39ddc1d945b3281d67d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Tue, 8 Sep 2015 19:38:16 +0200 Subject: Add scope test file --- scopetest.prn | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scopetest.prn 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 -- cgit v1.2.3-70-g09d2