lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 07/02/2011 01:29 PM, steve donovan wrote:
I like this one, because it's a fairly common pattern, and continues
the Lua tradition of sugar-coated function calls - with strings, table
constructors, and now a special do..end block.

Compiler will have trouble with this code, of course;

local f = iden
do
   ...
end

steve d.


So you use begin as the keyword instead of do. Like I suggested a few months ago.
--
Regards, Matthew "LeafStorm" Frazier
http://leafstorm.us/