lua-users home
lua-l archive

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


> The main one I haven't seen on the list yet is making code first class. A
> code block should be a table of statements, so instead of
> 
> do ... end
> 
> you write (in unsugared notation)
> 
> { ... }
> 
> This allows code to be manipulated by programs. 

I think this can be accomplished this by keeping an array of
strings, modifying the strings as required, and then having
a "dotable" function that concatenates the strings and then
does a "dostring". It's not especially clean, but I think it
covers all you need. Am I missing something?

Regards,

Alan
-- 
Dr Alan Watson
Instituto de Astronomía UNAM