|
|
||
|
Jamie Webb wrote:Makes sense now, thanks for the explanation.On Wed, Aug 18, 2004 at 05:05:19PM -0700, Marc Nijdam wrote: To be more specific about why I'm trying to do this: My application has a nested set of tables that form the "prototype" of a set of configuration items. What I'm trying to do is "clone" the prototype and override values in one of the subtables in the clone. so a = { b = { c = 22; } } d = clone{a, b.c = 33; } would have been the cleanest, since it states that I want to clone a and overide b.c in the clone. What I need to do now is: d = clone(a); d.b.c = 33; which works, except that nesting is quite deep and this gets real repetitive. I'm trying not to turn the configuration "language" into a full prototypical programming language since it needs to be editable by non-programmers. Any ideas welcome... --Marc |