lua-users home
lua-l archive

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


Would you for instance say that when you type in something
in an interactive session, and hit return, and Lua executes it,
those statements formed a chunk?

And in that case, should not a literal reading of the sentence
I quoted imply that the first line you type in is allowed to start
with a hash?


2013/8/22 Hao Wu <wuhao.wise@gmail.com>:
> from PiL (http://www.lua.org/pil/1.1.html):
>
> "Each piece of code that Lua executes, ..., is a chunk. More specifically, a
> chunk is simply a sequence of statements."
>
>
>
> On Wed, Aug 21, 2013 at 12:49 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>
>> The manual says:
>>
>> To allow the use of Lua as a script interpreter in Unix systems, the
>> standalone interpreter skips the first line of a chunk if it starts
>> with #.
>>
>> Is there a subtle reason why it says "chunk" rather than "script"?
>>
>