I totally realize a majority of the codebase is from the 6.0 days, and
am in no way critizing the tremendous amount of blood/sweat/tears that
went into Farcry.

I will report any non-var'd vars as bugs post-2.2.

As for the cfincludes, I am really only worried about it for persistant
CFCs. I think, for CFCs that are instantiated into the request or
unnamed scopes, that it isn't a big deal.

-dave



>>> [EMAIL PROTECTED] 05/10/04 8:07 PM >>>
David Ross wrote:
> you can cfinclude outside of a cffunction without endangering
> threadsafety (in this case we are just injecting common functions into
> the cfc, coldfusion "includes" them as the cfc is instantiated). The
> effect of using cfinclude WITHIN a cffunction is much different,
causing
> any local function variables to be automatically copied into the
> variables scope, basically the "instance" scope of the CFC.

re: CFC's and var/includes etc

Pre-6.1 you couldn't actually use var and include at the same time.. the

include would not even pick up the argument scope.  The 2.2 build will 
see a lot of pick ups on the VAR scope being used everywhere.  Post 2.2 
we'd love to have non-var'd variables reported as bugs.

The include issue is a little trickier.  We use this everywhere and its 
unfortunate that this CFMX bug has reared its ugly head.  The main 
reason for we're using INCLUDES in the CFCs is for readability.   Makes 
it much neater to compartmentalise the code that way.  This is 
especially true of functions with complex outputs like EDIT handlers.

Sadly, by the looks of things the only approach is to remove all 
includes from functions.

-- geoff
http://www.daemon.com.au/

PS. ahh Dreamweaver so glad you can collapse code.. the code editor of 
champions.. *sigh*

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to