[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: require behavior in modules
- From: Parke <parke.nexus@...>
- Date: Thu, 20 Aug 2015 12:26:48 -0700
On Thu, Aug 20, 2015 at 11:03 AM, Milind Gupta <milind.gupta@gmail.com> wrote:
> --- Module file begin
> xml = require("LuaXml")
> local xml = xml
>
> local M = {}
> package.loaded[...] = M
> _ENV = M
Milind and I discussed this offlist.
It turns out that LuaXml depends on "xml" being defined in _G, as
happens in the first line of the above.
-Parke