Well... I think the simple solution would have been to create a local NAMED
scope instead of local unnamed scope.

Then the CFINCLUDE could be given access that the named entity just as it's
given access to the named variables scope.

Jim Davis

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Barney Boisvert
> Sent: Friday, May 07, 2004 3:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] CFINCLUDE forces var scope into arguments?
> 
> > I can verify it.  In fact, I am very disappointed that this
> > is the way MACR
> > chose to implement this.
> 
> They didn't really have a choice.  The template that you CFINCLUDE is an
> independent block of CFML, it has no knowledge of anything function
> related.
> In other words, it has to function the same way whether it's in a function
> or not.  On the surface level you can do that, but you forget that the
> CFML
> compiler is doing a lot of work dereferencing variables and such.  The
> scope
> search, for example, is dependant on context.  In a function, you use
> local
> variables first, but in a template, you don't even have access to that
> scope.
> 
> Once we finally get a decent IDE for CFML (or even a really pathetic IDE),
> it won't be a big deal to have HUGE CFCs, and consequently includes won't
> need to be used for keeping them more managable.  Unfortunately, right now
> all we've got is text editors, but such is life.
> 
> Cheers,
> barneyb
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
> 
> An archive of the CFCDev list is available at www.mail-
> archive.com/[EMAIL PROTECTED]



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to