lua-users home
lua-l archive

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

On Mon, Jan 11, 2010 at 3:26 PM, Fabio Mascarenhas <> wrote:
>  in orbit.htmlify() do
>    function my_view()
>      return html{ body{ p "foo" } }
>    end
>  end

That's actually an expressive syntax, but not having access to module
scope within these functions _would_ be irritating.

Current thinking is that getfenv/setfenv is available, just not quite
so conveniently.  Use the debug functions, or if that is considered
horrible, load the fenv module dynamically.  As long as lua_getfenv
exists, all will be fine ;)

steve d.