[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: metatables for strings?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 3 May 2015 17:27:00 +0200
2015-05-03 16:04 GMT+02:00 Sam Putman <atmanistan@gmail.com>:
> 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.