[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Skipping leading "shebangs" in a file
- From: Coda Highland <chighland@...>
- Date: Mon, 8 Aug 2016 08:31:27 -0700
On Mon, Aug 8, 2016 at 7:31 AM, Robert Virding <rvirding@gmail.com> wrote:
> On 8 August 2016 at 05:28, Coda Highland <chighland@gmail.com> wrote:
>>
>>
>> The documentation is accurate. It's done by luaL_loadfilex and not
>> part of the more general chunk-loading functionality -- you can't
>> write load("#!/foo\nprint 'hi'") in Lua code and have it work.
>>
>> /s/ Adam
>
>
> Would it be safe to do it when I load a file but not when I load a string?
> Would this fit in with how users assume/expect it to work with Lua?
>
> Robert
>
Yes, that would be consistent.
/s/ Adam