May 16, 2019
6:18 p.m.
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