lua-users home
lua-l archive

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


On Fri, Jun 23, 2006 at 04:27:58PM +0200, Anders Bergh wrote:
> That's bad... ("foo"):len() looks weird.

yes, but this does work:
> s="foo"
> = s:len()
3

> On 6/23/06, Vyacheslav Egorov <mraleph@gorodok.net> wrote:
> >Diego Nehab wrote:
> >> So you can call "foo":len() and get string.len("foo")...
> >No. You can call ("foo"):len(), but not "foo":len().