Or just use the st command line handler to load your code. pharo-ui someimage.image st blah.st I do not know if it loads in Pharo5 but I had this working in Pharo3 that extends the File Browser in Pharo with additional buttons that allow you to edit external files easily. You can also steal this thing: https://github.com/vim-scripts/st.vim/blob/master/syntax/st.vim Useful for writing scripts indeed. Pharo can be used like Python, Perl, or Tcl for scripting from the command line. VTermOutputDriver is an interesting class to look at for that (does nice colors). Phil On Mon, Oct 3, 2016 at 10:40 PM, Richard Sargent < richard.sargent@gemtalksystems.com> wrote:
CodeDmitry wrote
Ok I got the proof of concept down, but I can't get it all to run at once since Pharo realizes that the class does not exist(at the time of running), even though it will exist by the time it gets to that line.
Is there a way to modify the following Transcript code make the following code run "one block at a time". Ignoring the fact that classes are not created at time of writing?
I think I need some way to "reflectively find a class by class name at runtime".
steps.st
([ SimpleSwitchMorph subclass: #LOCell instanceVariableNames: 'mouseAction' classVariableNames: '' package: 'PBE-LightsOut' ] value).
/
<snip> / Well, that was an excruciating read. Did you find it easy to read? I'll bet you also found it hard to write.
If you look at the file-out format (also called chunk format), you can just simply write the code you want as a result and it would be infinitely more comprehensible to you and to those you would share it with.
There are times when writing things along the lines that you have are essential. For example, if you are writing a code generator you would want to generate source strings and compile them.
-- View this message in context: http://forum.world.st/New-to- Pharo-a-bunch-of-questions-tp4917701p4917927.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.