Some Groovy code

Groovy (beta) code posted by murphy < groovy.codehaus.org/Collections
created at 13 Jan 18:13

Edit | Back
1
2
3
4
5
6
7
def player = new Expando()
player.name = "Dierk"
player.greeting = { "Hello, my name is $name" }

println player.greeting()
player.name = "Jochen"
println player.greeting()
178 Bytes in 4 ms with coderay