Code: Select all
| point, A |
point = Object new init:
{
| x, y |
set: _x and: _y
{
x = _x.
y = _y.
}
print
{
Console print: x.
Console print: " ".
Console print: y.
Console print: "\n".
}
}.
point set: 5 and: 6.
point print.
A = thisWorld spawn.
A eval: { point set: 8 and: 9. }.
point print.
A eval: { point print. }.
A commit.
point print.
// output:
5 6
5 6
8 9
8 9