It depends on what it is you are trying to do exactly. The variables scope
is fine for most things one needs to do. I'm not sure why you'd need the
variables scope to be a structure but I suppose someday it probably will be
as well. The reasons why you'd use request variables over local variables
mainly stem from the fact that request variables are available to any
template for the duration of a request. That means includes, custom tags,
handlers, etc. all can see the same request variable whereas local variables
can only be seen by the templates they are in and any cfincludes.
Andrew Hewitt
Web Application Developer
webworld studios, inc.
www.wwstudios.com
"I don't have a solution, but I admire your problem"
-----Original Message-----
From: Jamie Keane [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 2:46 PM
To: CF-Talk
Subject: Re: deallocate
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?
--
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: Simon Horwith <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Date: Monday, December 04, 2000 2:03 PM
Subject: RE: deallocate
>Apparently the variables scope is not a struct. Mr. Dave Watts pointed
this
>out to me, after my posting this e-mail. Learn something new everyday, I
>suppose. The variables scope does hold the local variables on a page,
>usually. If you want to store your variables in a "local" scope structure,
>write them to the request scope.
>
>~Simon
>
>> Simon Horwith
>> Certified ColdFusion Developer
>> Fig Leaf Software
>> 1400 16th St NW, # 220
>> Washington DC 20036
>> 202.797.6570 (direct line)
>> www.figleaf.com
>>
>
>
>-----Original Message-----
>From: Simon Horwith [mailto:[EMAIL PROTECTED]]
>Sent: Monday, December 04, 2000 11:39 AM
>To: CF-Talk
>Subject: RE: deallocate
>
>
>indeed it is... on both counts.
>
>~Simon
>
>> Simon Horwith
>> Certified ColdFusion Developer
>> Fig Leaf Software
>> 1400 16th St NW, # 220
>> Washington DC 20036
>> 202.797.6570 (direct line)
>> www.figleaf.com
>>
>
>
>-----Original Message-----
>From: Jamie Keane [mailto:[EMAIL PROTECTED]]
>Sent: Monday, December 04, 2000 11:15 AM
>To: CF-Talk
>Subject: Re: deallocate
>
>
>I know that there's a scope defined for ordinary variables on a page. It's
>the "variables" scope, right? Anyway, whatever its name is, do you know if
>it's a struct too? Thanks.
>
>--
>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: Dave Watts <[EMAIL PROTECTED]>
>To: CF-Talk <[EMAIL PROTECTED]>
>Date: Monday, December 04, 2000 10:04 AM
>Subject: RE: deallocate
>
>
>>> is there any function or method that would allow me to
>>> deallocate a variable after its been created and used?
>>
>>There's no explicit way to deallocate variables; typically, you simply
wait
>>for their scope to close. However, if the variable is part of a structure,
>>you can delete it from the structure, which should suffice. Many
variables,
>>such as Session variables, are stored within structures.
>>
>>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