lua-users home
lua-l archive

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

On 21 June 2012 11:48, Dirk Laurie <> wrote:
> There's some good (though advanced) stuff on the Lua Wiki:

I just read the Wiki and I noticed that there is almost byte-to-byte
exact code to what I have written myself independently from my own
head (honestly!):

getmetatable('').__index = function(str,i)
  if type(i) == 'number' then
    return string.sub(str,i,i)
    return string[i]

Now imagine if the code on the Wiki was patented...