On 3/28/02 11:21 AM, "Claude Brisson" <[EMAIL PROTECTED]> wrote:
> Ok, Geir, thanks a lot, your implementation works fine for my needs. > >> We need to decide if it masks existing globals >> completely - you can't read the values of those already existing. I guess it >> should, however .... Dunno. I can see that one either way. > > Not sure the mask would be a so good idea : for the recursion case, for > instance, the usage would not be as straightforward as it is > now, as in : > > #macro recurse($item) > #local($item) > ... > #recurse($item.child) > ... > #end > #end > > (there would be an extra reference, and an extra #set directive). > I agree with you - I don't think it should mask either - when I said "I guess it should" I should have completed my thought, which was "to be consistent" - so you could use it to make it really a local. Of course, then someone would ask for some kind of 'get from global' element in VTL $:foo Or something :) The conclusion is that there are some subtle issues :) > --- > > Btw, Geir, some mails ago in this tread, you wrote : > >>>> Why not make context.localscope true? What's the problem there? >>> - all needed global stuff must be passed as arguments to macros >> That shouldn't be true. > > Did you mean that the actual behaviour should be changed, or that it should > not be the actual behaviour ? You should be able to read a 'global' value, just not set it. Isn't that the case? -- Geir Magnusson Jr. [EMAIL PROTECTED] System and Software Consulting You're going to end up getting pissed at your software anyway, so you might as well not pay for it. Try Open Source. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
