lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
> 
> >From lua-l@tecgraf.puc-rio.br Wed Aug 18 03:38:33 1999
> >From: Adolf Mathias <dolfi@zkm.de>
> 
> >I've done some evolutionary programming in Scheme (a Lisp dialect), but
> >don't think it's that easy in Lua, because you don't have a simple
> >program representation other than text. In Scheme, you can implement the
> >basic operations, mutation and cross-over, by means of simple list
> >operations,
> 
> You can do the same in Lua using tables to implement lists.
> You don't have to use text at all.
> --lhf


Certainly you can use tables to represent expressions, but you can't
simply eval
them like in Scheme and instead have to cast them into code again,
which, according to my knowledge of Lua, involves either the path back
over text, or a new evaluator of these 'table expressions'.

But please tell me if I'm wrong. I'd love to learn more about Lua...

Dolfi

-- 
Adolf Mathias              EMail: dolfi at zkm dot de  Web: www.zkm.de
|||| / |< ||| ZKM Institute for Visual Media - Institut für Bildmedien
P.B. 6919 D-76049 Karlsruhe, Germany; fon +49 721-8100-1544, fax -1509