Hmmm ... Shift-Return (Spotter) type 'Compiler', first hit is AbstractCompiler which has a nice public API, it has only one concrete subclass that is being used: OpalCompiler Same for evaluate:
On 11 Apr 2020, at 12:05, Hilaire <hilaire@drgeo.eu> wrote:
Thanks to Squeak, it tooks me 5 min to discover this simple things from its workspace menu:
Compiler evaluate: ...
Oh, it does not work on Pharo. Ah, I remember I read something about a new compiler named Opal. I tried prefixing it with Opal. Yes, OpalCompiler evaluate:...
But why prefixing with Opal, it makes it impossible to discover, again !
Hum, I should have know how to do this simple thing really (and I did know but forget), but for me it illustrates how complex Pharo is becoming, and so more and more unpleasant to code with sometime. But I am clear I have no hope it will ever change though.
Hilaire
Le 11/04/2020 à 11:37, Hilaire a écrit :
How to write the code to execute a piece of code in code presenter?
-- Dr. Geo http://drgeo.eu