RE: [CFCDev] concerning this / variables scope in cfc

2004-11-16 Thread John D Farrar
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield Sent: Tuesday, November 16, 2004 12:20 AM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] concerning this / variables scope in cfc On Mon, 15 Nov 2004 18:00:50 -0500, John D Farrar [EMAIL PROTECTED] wrote: What would that be called

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-16 Thread Jeffry Houser
At 09:50 AM 11/16/2004, you wrote: Attributes don't prevent the use of a calculated variable. If you want a calculated variable... set one. Use a method/function. Yet, if you have an attribute like created... it doesn't need to be calculated. This is where it would help to think outside your box

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-16 Thread Patrick McElhaney
On Tue, 16 Nov 2004 09:50:03 -0500, John D Farrar [EMAIL PROTECTED] wrote: Also, who cares if they know the settings names inside the object, they are protected! The CFC may be protected against outside code messing with its state. But the clients of that CFC are not protected against changes

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-16 Thread John D Farrar
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick McElhaney Sent: Tuesday, November 16, 2004 11:17 AM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] concerning this / variables scope in cfc On Tue, 16 Nov 2004 09:50:03 -0500, John D Farrar [EMAIL PROTECTED] wrote: Also, who cares if they know

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread John D Farrar
, makes the object simpler to acquire attributes. Just my personal style. John Farrar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick McElhaney Sent: Monday, November 15, 2004 7:50 AM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] concerning

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread Jeffry Houser
:[EMAIL PROTECTED] On Behalf Of Patrick McElhaney Sent: Monday, November 15, 2004 7:50 AM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] concerning this / variables scope in cfc On Sun, 14 Nov 2004 17:28:07 +0100, Magnus Wege [EMAIL PROTECTED] wrote: So can anybody point me to a link or give examples how

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread John D Farrar
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick McElhaney Sent: Monday, November 15, 2004 12:33 PM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] concerning this / variables scope in cfc On Mon, 15 Nov 2004 11:19:55 -0500, John D Farrar [EMAIL PROTECTED] wrote: I

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread Dawson, Michael
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John D Farrar Sent: Monday, November 15, 2004 5:01 PM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] concerning this / variables scope in cfc What would that be called excapulation vs encapsulation. Actually you could still

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread Dave Watts
In certain languages, like VB6, you have property methods (Get Let). When you use: obj.firstName = Mike, the Let method is implicitely called. To me, the this scope is the same thing, but in a different language. I got away from using the this scope in favor of setters and getters,

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread John D Farrar
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Watts Sent: Monday, November 15, 2004 8:57 PM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] concerning this / variables scope in cfc In certain languages, like VB6, you have property methods (Get Let). When

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread Sean Corfield
On Mon, 15 Nov 2004 18:00:50 -0500, John D Farrar [EMAIL PROTECTED] wrote: What would that be called excapulation vs encapsulation. Actually you could still write the internals to deal with that... it would just require a little more features. But essentially you are wrong Pat. Actually Pat is

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread Roland Collins
PROTECTED] On Behalf Of Dawson, Michael Sent: Monday, November 15, 2004 8:38 PM To: [EMAIL PROTECTED] Subject: RE: [CFCDev] concerning this / variables scope in cfc In certain languages, like VB6, you have property methods (Get Let). When you use: obj.firstName = Mike, the Let method is implicitely

RE: [CFCDev] concerning this / variables scope in cfc

2004-11-15 Thread Roland Collins
;Reply-To: [EMAIL PROTECTED] gt;To: lt;[EMAIL PROTECTED]gt; gt;Subject: RE: [CFCDev] concerning this / variables scope in cfc gt;Date: Mon, 15 Nov 2004 21:44:23 -0500 gt; gt;Right... different beast. There are different approaches... I use the quot;thisquot; gt;scope as read only... less cryptic

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-14 Thread Sean Corfield
On Sun, 14 Nov 2004 17:28:07 +0100, Magnus Wege [EMAIL PROTECTED] wrote: In the overview it is mentioned that you shouldn't use the variables scope (avoid using). That's very out-of-date as it refers to bugs in CFMX 6.0 that have been fixed for two years (with CFMX 6.1). Though Nando is right

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-14 Thread Jeffry Houser
At 12:01 PM 11/14/2004, you wrote: variables scope is the equivalent of protected data members. If your object needs state information, it will use variables scope. variables scope exists for the lifetime of the CFC instance (which depends on the scope in which the CFC instance itself is stored).

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-14 Thread Sean Corfield
On Sun, 14 Nov 2004 12:08:49 -0500, Jeffry Houser [EMAIL PROTECTED] wrote: I'm not up on Java terminology, but... Is protected the same as private? CFML's private is roughly the same as Java's protected. CFML does not have an equivalent to Java's private. I would say that component data

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-14 Thread Jeffry Houser
I understand, thanks for the clarification. At 12:15 PM 11/14/2004, you wrote: On Sun, 14 Nov 2004 12:08:49 -0500, Jeffry Houser [EMAIL PROTECTED] wrote: I'm not up on Java terminology, but... Is protected the same as private? CFML's private is roughly the same as Java's protected. CFML

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-14 Thread Jeffry Houser
Francisco, CA 94121 (530)574-2129 (Home/Mobile) gt;From: Sean Corfield lt;[EMAIL PROTECTED]gt; gt;Reply-To: [EMAIL PROTECTED] gt;To: [EMAIL PROTECTED] gt;Subject: Re: [CFCDev] concerning this / variables scope in cfc gt;Date: Sun, 14 Nov 2004 09:01:45 -0800 gt; gt;On Sun, 14 Nov 2004 17:28:07 +0100

Re: [CFCDev] concerning this / variables scope in cfc

2004-11-14 Thread Steven Boynes
: Jeffry Houser lt;[EMAIL PROTECTED]gt; gt;Reply-To: [EMAIL PROTECTED] gt;To: [EMAIL PROTECTED] gt;Subject: Re: [CFCDev] concerning this / variables scope in cfc gt;Date: Sun, 14 Nov 2004 21:03:23 -0500 gt; gt; gt; variables.instance.varname will create a quot;protectedquot; variable. gt;That means