lua-users home
lua-l archive

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



On May 17, 2006, at 13:49, Graham Henstridge wrote:

The table.insert method does the trick for an indexed value but not for a string key. This need seems fundamental, so is there a simple solution that I have missed?

Lua 101:

local aDictionary = {}

aDictionary[ aKey ] = aValue

Programming in Lua
Part I. The Language
Chapter 2. Types and Values
2.5 - Tables

http://www.lua.org/pil/2.5.html

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/