lua-users home
lua-l archive

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

On Mon, Nov 22, 2010 at 4:55 PM, Dirk Laurie <> wrote:
> I would like to say line:scan but assigning to getmetatable("").scan
> causes no error but line:scan is still nil.

I think that should be getmetatable("").__index.scan.  In any case,
assigning to string.scan works well.