lua-users home
lua-l archive

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


> The ..= would be even more useful if leading to an internal
> optimisation: not discarding the old string to the GC and creating a new
> one, but perhaps recomputing the hash (adler32?) in place. I don't know
> internals enough to know if it is possible.

It is not, at least with the current implementation. A string may be
shared by several different variables. String assignment does not make
copies.

-- Roberto