On Thu, Apr 5, 2012 at 11:50 AM, Benjamin Davis <[email protected]
> wrote:

> I was thinking that by default <cfset> inside of a function is considered
> a <cfset var>.
>

You can enable auto-var scoping but it's not on by default.


>  I am incorrect on this?  If not, does that mean that every <cfset> that I
> do on a single page (outside of a function) should also be var'd?
>

You don't need to var scope everything on a CFML *page*, but you definitely
do (or need to turn on auto-var scoping) in a function in a CFC, otherwise
those variables are not thread safe.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to