lua-users home
lua-l archive

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


On Mon, Dec 6, 2010 at 4:41 AM, starwing <weasley.wx@gmail.com> wrote:
> {
>     function OnClick(evt)
>         print("we are clicked")
>     end
> }

It's come up a couple of times but I can't find it in the archives.
It makes sense for a particular kind of object-oriented style (but you
will still have to remember the comma or the semi-colon after the
function)

Out of interest, would this be a major change to the grammar?

steve d.