Re: check for unvared variables in a cfc
On Thursday 10 August 2006 14:56, Charlie Griefer wrote: > w00t! i wasn't just imagining that i made that post after all :) Bless keeping email for longer than a day :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249454 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: check for unvared variables in a cfc
Sorry... totally missed that post... > -Original Message- > From: Tom Chiverton [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 9:49 AM > To: CF-Talk > Subject: Re: check for unvared variables in a cfc > > On Thursday 10 August 2006 14:13, Russ wrote: > > I though I saw something somewhere at one point but can't seem to find > it. > > Umm, yeah, Charlies post about 2 minutes after the start of the thread :-) > > -- > Tom Chiverton > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England > and Wales under registered number OC307980 whose registered office address > is at St James's Court Brown Street Manchester M2 2JF. A list of members > is available for inspection at the registered office. Any reference to a > partner in relation to Halliwells LLP means a member of Halliwells LLP. > Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee > you must not read it and must not use any information contained in nor > copy it nor inform any person other than Halliwells LLP or the addressee > of its existence or contents. If you have received this email in error > please delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249453 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: check for unvared variables in a cfc
w00t! i wasn't just imagining that i made that post after all :) On 8/10/06, Tom Chiverton <[EMAIL PROTECTED]> wrote: > On Thursday 10 August 2006 14:13, Russ wrote: > > I though I saw something somewhere at one point but can't seem to find it. > > Umm, yeah, Charlies post about 2 minutes after the start of the thread :-) > > -- > Tom Chiverton > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and > Wales under registered number OC307980 whose registered office address is at > St James's Court Brown Street Manchester M2 2JF. A list of members is > available for inspection at the registered office. Any reference to a partner > in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by > the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may > be confidential or legally privileged. If you are not the addressee you must > not read it and must not use any information contained in nor copy it nor > inform any person other than Halliwells LLP or the addressee of its existence > or contents. If you have received this email in error please delete it and > notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249444 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: check for unvared variables in a cfc
On Thursday 10 August 2006 14:13, Russ wrote: > I though I saw something somewhere at one point but can't seem to find it. Umm, yeah, Charlies post about 2 minutes after the start of the thread :-) -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249441 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: check for unvared variables in a cfc
Thank you, this is perfect. > -Original Message- > From: Sean Coyne [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 9:21 AM > To: CF-Talk > Subject: RE: check for unvared variables in a cfc > > http://www.schierberl.com/varScoper/ > > -Original Message- > From: Russ [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 9:14 AM > To: CF-Talk > Subject: RE: check for unvared variables in a cfc > > Well most of us know why we should var the local variables inside a cfc > function, but my question was, are there tools that help you find > unvared variables? > > > I though I saw something somewhere at one point but can't seem to find > it. > > Russ > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249436 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: check for unvared variables in a cfc
Yes, as noted - Ray blogged about this kind of tool yesterday. I also like the "using your eyes" approach. "This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -Original Message- From: Russ To: CF-Talk Sent: Thu Aug 10 14:13:59 2006 Subject: RE: check for unvared variables in a cfc Well most of us know why we should var the local variables inside a cfc function, but my question was, are there tools that help you find unvared variables? I though I saw something somewhere at one point but can't seem to find it. Russ > -Original Message- > From: Denny Valliant [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 7:21 AM > To: CF-Talk > Subject: Re: check for unvared variables in a cfc > > Yeah, where it totally kills you is recursive functions. You /gotta/ var > those! > :D > > On 8/10/06, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > > > On Wednesday 09 August 2006 23:18, Munson, Jacob wrote: > > > If you have another variable with the same name as a CFC variable in > the > > > same scope, your CFC's variable values could 'bleed' into your other > > > scope variable. > > > > That's about it - typical things that happen are that query results or > > loop > > iterators ('i') suddenly become invalid partway through a method. > > This means you have to var *every* variable used in a CFC method - > > including > > cfhttp results, loop indexes, query names etc. > > > > -- > > Tom Chiverton > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249433 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: check for unvared variables in a cfc
http://www.schierberl.com/varScoper/ -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 9:14 AM To: CF-Talk Subject: RE: check for unvared variables in a cfc Well most of us know why we should var the local variables inside a cfc function, but my question was, are there tools that help you find unvared variables? I though I saw something somewhere at one point but can't seem to find it. Russ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249432 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: check for unvared variables in a cfc
Well most of us know why we should var the local variables inside a cfc function, but my question was, are there tools that help you find unvared variables? I though I saw something somewhere at one point but can't seem to find it. Russ > -Original Message- > From: Denny Valliant [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 7:21 AM > To: CF-Talk > Subject: Re: check for unvared variables in a cfc > > Yeah, where it totally kills you is recursive functions. You /gotta/ var > those! > :D > > On 8/10/06, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > > > On Wednesday 09 August 2006 23:18, Munson, Jacob wrote: > > > If you have another variable with the same name as a CFC variable in > the > > > same scope, your CFC's variable values could 'bleed' into your other > > > scope variable. > > > > That's about it - typical things that happen are that query results or > > loop > > iterators ('i') suddenly become invalid partway through a method. > > This means you have to var *every* variable used in a CFC method - > > including > > cfhttp results, loop indexes, query names etc. > > > > -- > > Tom Chiverton > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249431 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: check for unvared variables in a cfc
We are not avoiding varing variables... Just some variables might be unvared and I want to know which ones, so that I can var them. > -Original Message- > From: Brad Wood [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 09, 2006 6:11 PM > To: CF-Talk > Subject: RE: check for unvared variables in a cfc > > Please pardon my ignorance about this, but could someone please explain > exactly what you are avoiding by varing all our variables in a CFC. > What bad can come about by not doing that. Furthermore, when would you > NOT want to var a variable in a CFC. I'm still kinda new to CFC's so I > want to make sure I am dong stuff correctly-- and know why :) > > Thanks! > > ~Brad > > -Original Message- > From: Russ [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 09, 2006 4:12 PM > To: CF-Talk > Subject: check for unvared variables in a cfc > > We have a bunch of CFC's with many methods which are persisted in the > application scope. Some of these methods don't have all their variables > var'ed, and I was wondering if there is a tool/piece of code that can > check > this for us. I could've sworn I came across it at one point, but can't > seem > to find anything by googling. > > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249426 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: check for unvared variables in a cfc
Yeah, where it totally kills you is recursive functions. You /gotta/ var those! :D On 8/10/06, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Wednesday 09 August 2006 23:18, Munson, Jacob wrote: > > If you have another variable with the same name as a CFC variable in the > > same scope, your CFC's variable values could 'bleed' into your other > > scope variable. > > That's about it - typical things that happen are that query results or > loop > iterators ('i') suddenly become invalid partway through a method. > This means you have to var *every* variable used in a CFC method - > including > cfhttp results, loop indexes, query names etc. > > -- > Tom Chiverton > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England > and Wales under registered number OC307980 whose registered office address > is at St James's Court Brown Street Manchester M2 2JF. A list of members is > available for inspection at the registered office. Any reference to a > partner in relation to Halliwells LLP means a member of Halliwells LLP. > Regulated by the Law Society. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee you > must not read it and must not use any information contained in nor copy it > nor inform any person other than Halliwells LLP or the addressee of its > existence or contents. If you have received this email in error please > delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > For more information about Halliwells LLP visit www.halliwells.com. > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249422 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: check for unvared variables in a cfc
On Wednesday 09 August 2006 23:18, Munson, Jacob wrote: > If you have another variable with the same name as a CFC variable in the > same scope, your CFC's variable values could 'bleed' into your other > scope variable. That's about it - typical things that happen are that query results or loop iterators ('i') suddenly become invalid partway through a method. This means you have to var *every* variable used in a CFC method - including cfhttp results, loop indexes, query names etc. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249413 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: check for unvared variables in a cfc
If you have another variable with the same name as a CFC variable in the same scope, your CFC's variable values could 'bleed' into your other scope variable. If I understand it correctly, you only have to worry about it with variables in the 'variables' scope, or local variables in the CFC, not 'arguments' variables that are passed in to the CFC, or any other scope variable you might use (like application). I'm not exactly an expert, so someone will correct me if I'm wrong. > -Original Message- > From: Brad Wood [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 09, 2006 4:11 PM > > Please pardon my ignorance about this, but could someone > please explain > exactly what you are avoiding by varing all our variables in a CFC. > What bad can come about by not doing that. Furthermore, when > would you > NOT want to var a variable in a CFC. I'm still kinda new to > CFC's so I > want to make sure I am dong stuff correctly-- and know why :) This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249367 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: check for unvared variables in a cfc
Please pardon my ignorance about this, but could someone please explain exactly what you are avoiding by varing all our variables in a CFC. What bad can come about by not doing that. Furthermore, when would you NOT want to var a variable in a CFC. I'm still kinda new to CFC's so I want to make sure I am dong stuff correctly-- and know why :) Thanks! ~Brad -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 09, 2006 4:12 PM To: CF-Talk Subject: check for unvared variables in a cfc We have a bunch of CFC's with many methods which are persisted in the application scope. Some of these methods don't have all their variables var'ed, and I was wondering if there is a tool/piece of code that can check this for us. I could've sworn I came across it at one point, but can't seem to find anything by googling. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249366 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: check for unvared variables in a cfc
http://ray.camdenfamily.com/index.cfm/2006/7/20/Var-Scoping-Tool On 8/9/06, Russ <[EMAIL PROTECTED]> wrote: > We have a bunch of CFC's with many methods which are persisted in the > application scope. Some of these methods don't have all their variables > var'ed, and I was wondering if there is a tool/piece of code that can check > this for us. I could've sworn I came across it at one point, but can't seem > to find anything by googling. > > > > Russ > > > > > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249362 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
check for unvared variables in a cfc
We have a bunch of CFC's with many methods which are persisted in the application scope. Some of these methods don't have all their variables var'ed, and I was wondering if there is a tool/piece of code that can check this for us. I could've sworn I came across it at one point, but can't seem to find anything by googling. Russ ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249361 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4