lua-users home
lua-l archive

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


> To allow string methods to continue to work, you can't just override  
> __index.

Or you could use __call instead:
	getmetatable("").__call = string.sub
	print(("programming")(4,7))

--lhf