Skip to content

Instantly share code, notes, and snippets.

View akmalick's full-sized avatar
📚
Focusing

Asif Kamran Malick akmalick

📚
Focusing
View GitHub Profile
@akmalick
akmalick / script-binding.groovy
Created November 21, 2023 22:36
Short script explaining bindings in a groovy script
def a = 1
b = 2
def meth1(){
c = 3
def d = 4
//println "a from meth1() : $a" //N --- Local to run()
println "b of script body from meth1() : $b" //Y
println "c of meth1() from meth1() : $c" //Y
println "d of meth1() from meth1() : $d" //Y