lua-users home
lua-l archive

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


On Fri, 2004-10-29 at 12:47 +0100, David Given wrote:
> *shrug* Both approaches are equally valid. Does anyone have any particular 
> comments, advice, related war stories?

Here's another idea to throw into the mix.. instead of returning an
array, how about a for-loop generator function?

giving:

for child in object:children() do
  -- stuff with child
end

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895