[14 Aug 2009] Feature Request: eval(), etc.
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 14 Aug 2009 06:55:21 -0000
1)
I'd really like to have a feature similar to perl's 'eval BLOCK' in order to execute code within 'Block'.
In this way, it would be possible to "dynamically" load code parts or construct them within the code. That's useful for libraries or for parsing and executing the code of "simplified" templates.
2)
Another important feature is to have the possibility to determin the number of "keys" within a table
and
a method which tells you, if a certain "key" is within a table (or is nil).
ListItems() is very limited and only works for tables with keys starting from "0".
(Actually, the concept of a table in Hollywood is more similar to a hashtable and, thus, it would be important to get more information about the keys and values within the table).
Thanks, Tom
1)
I'd really like to have a feature similar to perl's 'eval BLOCK' in order to execute code within 'Block'.
In this way, it would be possible to "dynamically" load code parts or construct them within the code. That's useful for libraries or for parsing and executing the code of "simplified" templates.
2)
Another important feature is to have the possibility to determin the number of "keys" within a table
and
a method which tells you, if a certain "key" is within a table (or is nil).
ListItems() is very limited and only works for tables with keys starting from "0".
(Actually, the concept of a table in Hollywood is more similar to a hashtable and, thus, it would be important to get more information about the keys and values within the table).
Thanks, Tom