-
How could I execute programatically (without clicking the "go and inspect" button) a Pharo code snippet? I mean, If I'm in the playground of a Pharo snippet containing a little bit of code, which message should I send to "self" so I can execute such code? |
Beta Was this translation helpful? Give feedback.
Answered by
offray
Jul 20, 2022
Replies: 1 comment
-
I'm putting here a modified and tested answer from an idea given by @hellerve and coder := GtPharoSnippetCoder forSource: self contentAsString.
(coder doItAll) value asString Thanks, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
offray
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm putting here a modified and tested answer from an idea given by @hellerve and
@botwhytho
in the Discord channel. The key was to look at the "Programmatic code evaluation" of the Gt Book:Thanks,