lua-users home
lua-l archive

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


On Thu, 1 Feb 2001, Alan Watson wrote:

> > 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?

Just that I'm interested in making code first class, and having no
difference between code and tables.

-- 
http://sc3d.org/rrt/ | Caution Children At Play Drive Slowly