Login  Register

Re: Squeak: Compiler evaluate: '3+4' Pharo equivalent = ?

Posted by Ben Coman on Oct 07, 2018; 3:20am
URL: https://forum.world.st/Squeak-Compiler-evaluate-3-4-Pharo-equivalent-tp5086475p5086490.html



On Sun, 7 Oct 2018 at 00:31, H. Hirzel <[hidden email]> wrote:
Hello

What is the Pharo equivalent of the Squeak expression

     Compiler evaluate: '3+4'

The direct equivalent is 
    OpalCompiler evaluate: '3+4' 

but Sven's answer is more in line with good practice.

cheers -ben