On Thu, 11 Nov 2004 14:33:46 -0500, Burns, John D
<[EMAIL PROTECTED]> wrote:
> Would it be possible to do <cfquery name="var getEmployees"> ?  It looks
> funny and I doubt it would work, but I know you can do <cfquery
> name="application.getEmployees"> so I thought maybe the other would work
> as well.  Anyone have time to test?
> 

It won't work, and if you think about that syntax, it make sense that
it wouldn't. You're asking the cfquery tag to evaluate the query name
to be a string called "var getEmployees" which you can't do.

I don't really see the scoping issue as a big deal. I've used CFCs now
for well over a year, and, while it takes a bit to get used to with
regard to var scoping *all* your local vars, it's not such a big deal.
I would bet big money that there's no way Macromedia would change the
default scoping of variables at this point, if anything for
backwards-compatiblity. Also, on a personal level, if changes are
going to be made to CFCs, I'd rather see the focus of the engineers'
effort be on other features like interfaces rather than this.

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184012
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to