If you let the 'final' part of 'public static final' weigh in
slightly, then Isaac's proposal kind of gives you static.  Because
it's a method not a variable, there is only one instance (so it's a
class "thing"), you can't change it like a non-final variable.  It's
messy and nasty, which is why I prefer to just use a variable in the
'this' scope.

cheers,
barneyb

On Wed, 23 Feb 2005 17:04:35 -0500, Joe Rinehart <[EMAIL PROTECTED]> wrote:
> That doesn't really cover "static," though - what makes a static
> member static is that it belongs to the type instead of one instance
> of a type.  I.e.:
> 
> InstanceOne.StaticVar = 1
> InstanceTwo.StaticVar = 2
> 
> <!--- Would show "2" if we had statics --->
> <cfoutput>#InstanceOne.StaticVar#</cfoutput>
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196275
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to