Hi, Is nice to see this similitude between Lua and Pharo. We have been using both in the Grafoscopio[1] project, because Lua is Pandoc's default choice for embedded scripting language, and is pretty fast on the Abstract Syntax Tree filters. [1] https://mutabit.com/grafoscopio/index.en.html For me Lua and Pharo are kind on opposite sides of the programming spectrum/experience but is nice to see this conceptual connections. Hopefully we, at the local hackerspace, will be able to explore the Lua+Pharo bridge more and showcase them here. Cheers, Offray On 16/05/19 1:18 p. m., Brainstorms wrote:
You got it. Thanks, Ben!
After success with Lua, now I'm thinking about how to get Pharo inserted into the culture here...
Ben Coman wrote
You mean like this...
In System Browser... Object subclass: #A instanceVariableNames: '' classVariableNames: '' package: 'AA'
A >> block |a| ^ [ a := (a ifNil: [ 0 ]) + 1 ]
In Playground... b := A new block inspect. { b value. b value. b value . b } "==> an Array( 1 2 3 [ a := (a ifNil: [ 0 ]) + 1 ] )"
cheers -ben
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html