[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why not semicolon after "function()" ?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 1 Dec 2000 09:26:52 -0200 (EDT)
>Why is
> f = function() print(9);end
>accepted, while
> f = function();print(9);end
>is not?
Because Lua does not have an empty statement.
Semicolons can only appear after statements.
--lhf