Jump to content




coolOS

computer

  • You cannot reply to this topic
29 replies to this topic

#21 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 12 April 2013 - 03:53 AM

View PostNDFJay, on 12 April 2013 - 03:45 AM, said:

im going all out using tables, arrays, a multitude of events, roaming profiles, dynamic timed changing desktop backgrounds, dragable icons, the whole lot :P
The day you start using arrays, is the day I stop helping.

#22 Jappards

  • Validating
  • 116 posts
  • LocationHolland

Posted 15 April 2013 - 08:27 AM

when i use this i get the error:
paintutils:92:attempt to get length of nil.

#23 Jappards

  • Validating
  • 116 posts
  • LocationHolland

Posted 18 April 2013 - 06:03 AM

View Posttheoriginalbit, on 12 April 2013 - 03:53 AM, said:

View PostNDFJay, on 12 April 2013 - 03:45 AM, said:

im going all out using tables, arrays, a multitude of events, roaming profiles, dynamic timed changing desktop backgrounds, dragable icons, the whole lot :P
The day you start using arrays, is the day I stop helping.

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.

#24 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 18 April 2013 - 05:58 PM

View PostJappards, 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.
No, no you don't... You use Tables, not Arrays, there is a difference. Thank you for the offer to help but I use tables several times in each and everyone of my programs and apis, and have extensive knowledge and use frequently list data structures in my everyday life.
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 NDFJay

  • Members
  • 216 posts
  • LocationLeeds, England

Posted 18 April 2013 - 07:09 PM

View Posttheoriginalbit, on 18 April 2013 - 05:58 PM, said:

View PostJappards, 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.
No, no you don't... You use Tables, not Arrays, there is a difference. Thank you for the offer to help but I use tables several times in each and everyone of my programs and apis, and have extensive knowledge and use frequently list data structures in my everyday life.
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 :P then again maybe that wouldnt of been the nicest thing to do lol

#26 Jappards

  • Validating
  • 116 posts
  • LocationHolland

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?

#27 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 19 April 2013 - 03:51 AM

View PostJappards, 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?
Arrays | Tables
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 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

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 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users