Re: luasocket: inheritance
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: luasocket: inheritance
- From: Diego Nehab <diego@...>
- Date: Wed, 1 Jun 2005 23:16:49 -0400 (EDT)
Hi Bill,
Here's a simple example:
lines 66 and 67 in mime.lua are:
mime.wrapt['base64'] = wrapt['text']
mime.wrapt['default'] = wrapt['text']
The line
module("mime")
makes sure every global falls into the mime namespace. So you can
actually *remove* 'mime.' from the lines and it should still work.
wrapt['base64'] = wrapt['text']
wrapt['default'] = wrapt['text']
I just did it here and it works fine. These tables are defined right
after the call to module("mime").
encodet = {}
decodet = {}
wrapt = {}
Maybe you changed something else?
Regards,
Diego.