lua-users home
lua-l archive

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


On Wed, Nov 16, 2011 at 20:34, Greg <tghill@hotmail.com> 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
> package.preload.socket.core
> 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"] ~=
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.