Thread: Hash Arrays
View Single Post
  #7  
Old 12-05-2009, 05:08 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Crow View Post
Maybe Stefan could just real-time translate child objects to work with an associative array syntax. Lua kind of does it as well:
NPC Code:
local arr = { x = 30, y = 40 };
print(arr["x"] .. ", " .. arr.y); -- "30, 40"

I like that idea! I think I'm gonna have to go try Lua out sometime soon, to be honest
Reply With Quote