Re: Other Globals in %once

Dave Rolsky <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On Wed, 28 Apr 2004, David Wheeler wrote:

> > Anyway, you can _use_ the globals inside the once section, because
> > there's a "use vars" block at the top of the component.  But if you
> > wan to set them to something, that's up to you, I think.
>
> And then because they're global, it's fine, yes? So why not just assign
> them before executing the %once block? What does it really gain you not
> to? What does it protect Masonites from?

Well, first of all, _we_ only have control over the Mason request object
var (and the Apache request var, too), so this wouldn't really have helped
with Bricolage, because Mason can't set those for you.

Second, I'm just not sure we should encourage people to use these vars in
the once section, because it'll just be likely to create problems.  As you
pointed out, you can already get at the request if you really want.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.