badsector/lil — Issue #2: Function doesn't use the last expression's value as return value.
Author: wsxiaoys
Created: 2011-12-29 06:29:33+00:00
State: open

From the document:

return [value]
stops the execution of a function's code and uses as the
result of that function (note that normally the result of a function
is the result of the last command of that function). The result of
return is always the passed value

While the following code failed:
func test args { expr 100 }
print [test]
# prints nothing(expect 100)