|
Suggested the latter, to apply to the per-type metatable. I have notified this to the authors already, but no feedback on the particular issue. Basically, we'd need separate "byte size" and "length" operators, which by default would be the same.
-asko Daniel Silverstone kirjoitti 12.1.2006 kello 18.47:
On Thu, 2006-01-12 at 18:42 +0200, Asko Kauppi wrote:Make that apply to strings as well? As a quick example, would allow UTF-8 strings to be returning the real length (in characters); not the number of bytes.That would (unless I'm wrong) require strings to carry around metatablesthemselves which is a very big change. Or did you simply mean check against the string metatable? D. --Daniel Silverstone http://www.digital- scurf.org/ PGP mail accepted and encouraged. Key Id: 2BC8 4016 2068 7895