[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: First line of Lua chunk
- From: Dirk Laurie <dirk.laurie@...>
- Date: Thu, 22 Aug 2013 11:51:07 +0200
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"?
>>
>