13 ms·
> also retain the "scripting" (light) commandline approach Smalltalk developers preferred to do their scripting within the Smalltalk IDE, so they could use the
by igouy 11mo ago
> also retain the "scripting" (light) commandline approach
Smalltalk developers preferred to do their scripting within the Smalltalk IDE, so they could use their familiar tools.
And then save their "scripting" as a text file ("fact.st").
$ cat fact.st
Stdio stdout
nextPutAll: 100 factorial printString;
nextPut: Character lf.!
SmalltalkImage current snapshot: false andQuit: true!
And then "run" that text file ("fact.st") from the commandline.
$ bin/pharo --headless Pharo10-SNAPSHOT-64bit-502addc.image fact.st
93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000