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?


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


Daniel Silverstone               
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895