Help me understand
Is
Local sumAmount = #sumlist The same as Local sumAmount = table.getn (sumList) (I think that's the call I'm using... out working not looking at my code. Aldo what do the # mean |
It means the number of elements in the table (items in the list).
|
Okay.. any ideas why I get an error when I use the # sign?
Basically I'm working on editing an addon I made for cata to work on vanilla... |
Quote:
|
Quote:
|
Regardless of the legitmacy, without seeing the actual code and/or erros anything put forward would be a wag.
|
Perhaps the # table length operator wasn't present in whatever subset of Lua that was used in Vanilla WoW. I know that there was a transition from getn() to # through the expansions of WoW.
Unfortunately, if you are reporting errors spit out from Vanilla's Lua parser, then you aren't going to get any help here. |
Vanilla WoW ran Lua 5.0, which the length operator didn't exist in that version. Starting with BC, WoW had upgraded to using Lua 5.1.
|
Quote:
|
All times are GMT -6. The time now is 12:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI