On 2/17/02 6:18 PM, "Paulo Gaspar" <[EMAIL PROTECTED]> wrote:
> Thanks Geir, > > I noticed that thread but did not pay enough attention to > understand it. > > I just HAD to fix my version or I would get bad output, but I > understand that this could break somethink elsewhere. Musing over this issue a bit more in response to your note, we will have a snag we need to deal with - Suppose that I wrap one context in another. VelocityContext vc = new VelocityContext( another ); And then use the new one in rendering a template. Then what do we do? The idea of chaining is to make the 'inner' ctx protected. This can produce some interesting and spooky effects. To illustrate : with a #set(), it won't work : #set( $somethingInner = $somethingNull) Results in $somethingInner being unchanged because this would affect the outermost context, which already may not have anything in it, so it delegates to the inner. We have to continue to support that contract of protection. geir -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting "Whoever would overthrow the liberty of a nation must begin by subduing the freeness of speech." - Benjamin Franklin -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
