lua-users home
lua-l archive

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

2015-05-03 16:04 GMT+02:00 Sam Putman <>:
> something like
> local my_url = setmetatable("",UrlMeta)

I can't guess what you want. What there is at present:

1. The metatable shared by all strings can be accessed a simple "getmetatable".
2. It is initialized to {__index = string}.
3. You can do interesting things by providing a __newindex metamethod.