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

From: Robert <rob.g.att.web.de>
Date: Sat, 18 Aug 2012 22:27:21 +0200

On Sat, Aug 18, 2012 at 10:17 PM, Jason <jpriest8ml.att.gmail.com> wrote:
> Hi,
>
> I'm trying to use several scripts which rely on the module function from
> the standard
> library, yet it appears to be gone from textadept. What is the reasoning
> for this?
>
> In both LuaJIT-beta10 and Lua5.2 with the default configuration this
> function is available.
>
>

Textadept is compiled without Lua 5.1 compatibility enabled.
Basically, you need something like
local M = {}

-- your 'public' functions
function M.set_breakpoint()
-- ...

return M

in each module file.

Robert

-- 
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 - 16:27:21 EDT

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