I understand now, at first I understood it worked in quite the opposite way.
It must be a limit of mine: I remeber how I clumsly stumbled in this
::request::global thing when I first met it. 

It's ok, +1 definetely because adds a value also in term of coding style to
adopt with Rivet. Don't forget to write a manual page with an example. 

 -- Massimo

On Fri, 10 Sep 2010 10:30:21 -0500, Damon Courtney wrote
> Basically, reqvar means to give me a "global" variable for this 
> request only.  It basically does:
> 
> namespace upvar ::request foo foo
> 
> So you get your variable locally, but it's coming from the ::request 
> namespace.  It will get cleaned up along with the namespace when the 
> request is complete.  If you want a TRULY global variable, meaning 
> one that will actually persist between instances, you would use the 
> global command or the variable command within your own namespace.
> 
> reqvar is just a way to say "Give me a variable for this request only".
> 
> Damon
> 

--


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to