Dear Nagu

David and Damon should be called in to give a definite answer. The answer I gave myself was that rvt templates run within the ::request namespace and this namespace is erased on every request, thus deleting any variable created in a script embedded in it which was not fully qualified outside that namespace. There are of course cases where you want to store persistent application data in some variable and you can do it putting the in suitable namespace, still you can rely on the fact that everything you set within a template, unless intentionally scoped outside of it, it will be destroyed automatically

cheers

 -- Massimo



On 2012-07-22 19:46, Nagarajan Chinnasamy wrote:
Thanks Massimo. I also realized that they are being treated
differently, when I re-looked at the source of rivet-ajax example.

This understanding (of .tcl & .rvt being same) was because of my
hang-over from php which Ive just started learning.

Any reason why we have separated them as different (unlike php)?

Best Regards,
Nagu.



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to