lua-users home
lua-l archive

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

On Jan 31, 2005, at 02:44, Javier Guerra wrote:

this is the 'same leaves' problem, there are several interesting solutions.
it's used in functional programming classes because there's no simple
solution without coroutines and/or lazy evaluation

Care to elaborate in more details?

that seems (to me) like a square peg in a round hole.

I like that. This will be LUObject's official motto from now on. Thanks! :)

if you don't try to define everything in that LUObject

Sigh... let me rephrase it:

local aKey = { blue, white, read }
local aValue = { 1, 2, 3 }
local aTable = { aKey = aValue }
local anotherkeyTable = { blue, white, read }

aTable[ anotherkeyTable ]

The key equality is based on the table content. How?


PA, Onnay Equitursay