script1.stx
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 Jun 2016 17:14:29 +0100
branchjv
changeset 1447 0b149293564f
parent 1392 359fc4f22cd6
child 1474 5da7d89d0cae
permissions -rwxr-xr-x
Issue #98: Added -P / --package-path command line option ...to modify package path from command line. Just like java's -cp / --classpath

#!stx --script
"/
"/ on any system:
"/      "stx --script script1.stx
"/ or:
"/      "stx --f script.stx"
"/ or:
"/      "stx script1.stx"
"/
"/ on Unix:
"/      make this file executable,
"/      ensure that stx is in your path,
"/      then type ./script1.stx
"/
"/ just prints some numbers
"/
1 to:10 do:[:i |
   ('the factorial of %1 is %2'
	bindWith:i with:i factorial) printCR
].