Login  Register

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

Posted by Sven Van Caekenberghe-2 on Oct 06, 2018; 4:56pm
URL: https://forum.world.st/Squeak-Compiler-evaluate-3-4-Pharo-equivalent-tp5086475p5086476.html

I believe the idea is to ask yourself for your compiler

  self class compiler evaluate: '1+2'

So I guess, globally the following would do

  Smalltalk compiler evaluate: '1+2'.

This I infer by looking at the implementors of #compiler

> On 6 Oct 2018, at 18:30, H. Hirzel <[hidden email]> wrote:
>
> Hello
>
> What is the Pharo equivalent of the Squeak expression
>
>     Compiler evaluate: '3+4'
>
> ?
>
> Thank you for the answer in advance
>
> --Hannes
>