lua-users home
lua-l archive

Re: luasocket: inheritance

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


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.

AltStyle によって変換されたページ (->オリジナル) /