> Are there any issues with using the request scope in lieu of 
> the variable scope? Or is the fact that one's a struct the 
> only difference?

There aren't any issues with using the Request scope, except that you must
explicitly scope your variables; with the local Variables scope, you don't
have to.

However, as mentioned earlier, the fact that the Request scope is a
structure isn't the only difference. The Request scope is also available to
every script that is used to respond to a single request. So, for example, a
Request variable set in application.cfm will be available in the main
script, and also in any custom tags called by that script, and any custom
tags called by those tags themselves, and so on.

That's actually the reason Allaire added it, I think - Spectra uses a lot of
nested custom tags, and the Request scope allows those tags to share data
more easily.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to