That’s circumstances but I found that just yesterday so as to store scripts:

"info1 - webservice"
covidScript := 'ZnClient new
        "contentReader: [ :entity | NeoJSONReader fromString: entity contents 
];"
        forJsonREST;
        get: 
''https://www.data.gouv.fr/fr/datasets/r/58aee810-ddd2-4359-85eb-5cfd899cd1ce''.'.

covidFRUntilToday := OpalCompiler new
                source: covidScript;
                logged: false;
                evaluate.

 (I looked for #evaluate)

Hth,

Cédrick

Ps: btw I wonder how log can go now :)
                

> Le 11 avr. 2020 à 12:05, Hilaire <hila...@drgeo.eu> a écrit :
> 
> 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
> 
> 
> 


Reply via email to