lua-users home
lua-l archive

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

I would be all for throwing away `.n` if it didn't break existing code, as others have mentioned. Perhaps it would be best to leave it alone where it exists currently and then proceed to use the #t syntax elsewhere. This would have the side-effect of causing something like `t = {1, 2, 3}` to have the length of `#t = 3` as this is the current behavior of Lua and current code undoubtably relies on this. However this is not entirely undesirable as previous posts have mentioned that the initial length should be either 0 or 3 (in this case) and it appears that this would simply settle the matter for us. This would of course imply that the default behavior of `#t` be its current behavior, and for it to be changed the `#t = ` syntax could be used.