|
Francisco, thank you very much for pointing this out. Sets me on track. As suggested by some, I add a little bit of information to illustrate why and in what context my question arose. I am programming for the ConTeXt (a TeX variant) typesetting programming environment. There is exchange of values from the TeX main program body to the embedded Lua in this system and vice versa. It brings its own peculiarities. More often than not parameters are exchanged from TeX to Lua as strings. So some limitations one must take for granted. Or otherwise clutter the interface with different macro's for string or bare value exchange. I have learnt to live with those limitations. Programming of data structures in the TeX language (although formally a Turing machine) can be done, but is a pain in the ass, so to speak. Therefore I am doing that on ConteXt's Lua side. In order to handle data structures like arrays and records in TeX I am aiming for a few object oriented modules for each of these two. It then seemed natural to traverse each of them in their own way.
yours sincerely dr. Hans van der Meer |