[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Lanes with package.preload and package.loader
- From: HyperHacker <hyperhacker@...>
- Date: Wed, 16 Nov 2011 22:35:40 -0700
On Wed, Nov 16, 2011 at 20:34, Greg <firstname.lastname@example.org> wrote:
>> package.preload.socket.core is just a name which is a key in a table,
>> it doesn't mean I have retrieved the value of
>> package.preload.socket.core (which doesn't exist).
> I think there is a difference between searching for
> and package.preload["socket.core"].
> package.preload.socket.core is nil but package.preload["socket.core"]
> has a value.
> Is it possible that the string is being processed incorrectly?
> - Greg
package.preload.socket.core = package.preload["socket"]["core"] ~=
One is looking for "core" in "socket" in "preload", the other is
looking for literally "socket.core" in "preload".
Sent from my toaster.