lua-users home
lua-l archive

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


> - metatables for all types

Having misread the code in lstrlib.c, the first thing I tried (and hoped
would work) was this:

str = "Hello"
print(str[3])

Okay, that's fine.  But then I tried this:

for c in str do
    print(c)
end

And I hung work6 indefinitely.  I also watched memory keep growing, I'm
assuming, indefinitely also.

Josh