In essence, refering to variables outside the scope of a tag is analogous to
using global variables in other languages, something that was frowned upon
in the books I read and the courses I took. The proper way, then, would be
to explicitly pass all necessary parameters to a tag, and eliminate the
uncertainty.
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC 28270
www.solutionmasters.com
704.563.5559 x 228 Voice
704.849.9291 Fax
-----Original Message-----
From: David Shadovitz <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Tuesday, December 12, 2000 10:29 AM
Subject: Re: What are the recognized CF variable scopes?
>Jeff,
>
>I'm with you. When I raised this issue in December '99, Dave Watts
>pointed out that just because you can do something doesn't mean that you
>should.
>
>-David
>
>On Wed 06 Dec 2000 Jeffry Houser <[EMAIL PROTECTED]> wrote:
>> Shouldn't custom tags be coded to be as self-contained as
>> possible? If you need to access values in the custom tag,
>> wouldn't it make more sense to pass them as attributes to
>> the custom tag, as opposed to globally defining them?
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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