2026-03-02 10:09:10 +11:00
|
|
|
set &x 5
|
|
|
|
|
|
|
|
|
|
fun !dingle -function -int &a
|
|
|
|
|
fun !capture -int -int &b
|
|
|
|
|
add $a $b &tmp
|
|
|
|
|
add $tmp $x &tmp
|
|
|
|
|
return $tmp
|
|
|
|
|
endfun
|
|
|
|
|
return $capture
|
|
|
|
|
endfun
|
|
|
|
|
|
2026-03-18 15:21:58 +11:00
|
|
|
set &x 10
|
2026-03-02 10:09:10 +11:00
|
|
|
call !dingle 3 &result
|
|
|
|
|
call !result 5 &y
|
2026-03-18 15:21:58 +11:00
|
|
|
println $y $x
|