NDFJay, on 12 April 2013 - 03:45 AM, said:
29 replies to this topic
#21
Posted 12 April 2013 - 03:53 AM
im going all out using tables, arrays, a multitude of events, roaming profiles, dynamic timed changing desktop backgrounds, dragable icons, the whole lot 
#22
Posted 15 April 2013 - 08:27 AM
when i use this i get the error:
paintutils:92:attempt to get length of nil.
paintutils:92:attempt to get length of nil.
#23
#24
Posted 18 April 2013 - 05:58 PM
Jappards, on 18 April 2013 - 06:03 AM, said:
i like using arrays a LOT, i use arrays in (almost) every script, so if you need some help with arrays, i could help if you want to.
The purpose of what I stated was to be joking and meaning "NDFJay if you are going to start using arrays in a language that doesn't have arrays, I will stop helping.".
#25
Posted 18 April 2013 - 07:09 PM
theoriginalbit, on 18 April 2013 - 05:58 PM, said:
Jappards, on 18 April 2013 - 06:03 AM, said:
i like using arrays a LOT, i use arrays in (almost) every script, so if you need some help with arrays, i could help if you want to.
The purpose of what I stated was to be joking and meaning "NDFJay if you are going to start using arrays in a language that doesn't have arrays, I will stop helping.".
haha ToB we could of played it off and seen how far it could go
#26
Posted 19 April 2013 - 03:47 AM
OT:
if you say that arrays and tables arent the same, what is the difference between an array and a table?
if you say that arrays and tables arent the same, what is the difference between an array and a table?
#27
Posted 19 April 2013 - 03:51 AM
Jappards, on 19 April 2013 - 03:47 AM, said:
if you say that arrays and tables arent the same, what is the difference between an array and a table?
Basically if we were comparing Tables to a data structure in Java, you can think of it as a List and Dictionary implemented through use of a HashMap. An array is only index/value, tables can be index/value and key/value.
#28
Posted 19 April 2013 - 03:56 AM
No. Stop making silly made-up distinctions. Tables are arrays. Lua 5.1 Reference Manual:
Quote
The type table implements associative arrays, that is, arrays that can be indexed not only with numbers, but with any value (except nil).
#29
Posted 19 April 2013 - 04:03 AM
Tables *can be arrays. They aren't just arrays, but dictionaries, and lua provides utiliies that allow array-like behavior.
#30
Posted 19 April 2013 - 05:51 AM
No, tables are arrays. They are a subset known as associative arrays.
Either way though, we're arguing over a relatively silly distinction, but the point that I wanted to make is that it's not acceptable to try to troll other members (especially newer or less experienced members) with silly distinctions between arrays and tables. This isn't middle school, guys. The post about "No, you don't use arrays, you use tables!" earlier in the thread comes across like some sixth grader that just got someone to say "Under where?" and is now being a jackass about it. Essentially, I don't care whether or not you agree with the definition of array or whether Lua's tables are or aren't arrays. I just don't want to see that kind of thing being done to newer members. That is not what this community is about.
Either way though, we're arguing over a relatively silly distinction, but the point that I wanted to make is that it's not acceptable to try to troll other members (especially newer or less experienced members) with silly distinctions between arrays and tables. This isn't middle school, guys. The post about "No, you don't use arrays, you use tables!" earlier in the thread comes across like some sixth grader that just got someone to say "Under where?" and is now being a jackass about it. Essentially, I don't care whether or not you agree with the definition of array or whether Lua's tables are or aren't arrays. I just don't want to see that kind of thing being done to newer members. That is not what this community is about.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











