Wish Code blocks in B4i (and B4a)

imbault

Well-Known Member
Licensed User
Hi Erel,
I was thinking if it's difficul for you to add "Code blocks" in B4i and B4a.

This feature I use with Groovy (called closures) is very interesting and very powerfull:

Super simple example
B4X:
def clos = { println "hello!" }

println "Executing the Closure:"
clos()                          //prints "hello!"

http://groovy.codehaus.org/Closures
 

imbault

Well-Known Member
Licensed User
@LucaMs Calling a function and embedding code in a "pseudo" variable called def in Groovy is not really the same...
 
Top