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.
