[Pharo-users] Re: "Print it" redirection

2024-02-21 Thread Richard O'Keefe
What stops you copy and paste? Using ANSI Smalltalk, you'd do [:stream | stream print: 1000 factorial; cr; close] value: (FileStream write: 'factorial.txt'. Pharo has never provided an ANSI-compatible FileStream class, which is a pain for trying to write portable code. In Pharo you have to

[Pharo-users] Re: "Print it" redirection

2024-02-20 Thread Tim Mackinnon
Hi - the following is a bit old but might still work (and I plan on revisiting it myself) - but my poor man's Pharo build system does the following (note the | tee which I use to capture any load errors that I can grep and cause a build failure). This might be the kind of thing you are looking

[Pharo-users] Re: "Print it" redirection

2024-02-20 Thread Koen De Hondt
Rene Paul, Try this. Example command line from MacOS. ~/Pharo/vms/120-x64/Pharo.app/Contents/MacOS/Pharo --headless pharo12.image eval 1000 factorial Replace ~/Pharo/vms/120-x64/Pharo.app/Contents/MacOS/Pharo by the path to the VM you like to use. Replace pharo12.image by the path to