Re: [code] [textadept] What happened to the module function?

From: Mitchell <m.att.foicica.com>
Date: Sat, 18 Aug 2012 23:46:54 -0400 (EDT)

Jason,

On Sat, 18 Aug 2012, Jason wrote:

> On 08/18/2012 04:03 PM, Robert wrote:
>>
>> There was some discussion about this when Lua 5.2 was used in
>> Textadept - maybe you just found a use case for having it enabled.
>> Mitchell might have more to say on this...
>> How have you LuaSocket installed, via LuaRocks?
> Yes, with LuaRocks.
>
>> Otherwise, you might try the LuaJIT enabled build of Textadept (this
>> should still be Lua 5.1 compatible, I think, as there is LuaJIT has
>> only upwards compatibility for 5.2 features) or try compiling
>> LuaSocket for 5.2 (there seem to be unofficial ports).
> Oddly enough I discovered this while using the LuaJIT build of Textadept.
> It seems to have been stripped of this valid Lua 5.1 standard library
> function...

You can change core/compat.lua:30 to not set `module()` to `nil`.

As for why Textadept uses Lua 5.2, the latest version of Lua is 5.2. That
is reason enough. You can always recompile Textadept with 5.1
compatibility enabled.

Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sat 18 Aug 2012 - 23:46:54 EDT

This archive was generated by hypermail 2.2.0 : Sun 19 Aug 2012 - 06:52:29 EDT