Paul Roe wrote:
So when is it appropriate to use the 'this' ope rater when dealing with cfc's?

It was always easy to figure out in java because it either worked or
it didn't. Now with cf I'm finding myself writing inconsistent code
because I don't have a good enough understanding of when you should
and shouldn't use 'this'. Any suggestions about reading materials or
just any general standards advice would be appreciated.

Thanks in advance
  
I've only used the "this" scope as Barney and Barry have described and when using Lightweight Transfer Objects (as generated by the Mach-II Bean Creator) which have been discussed a lot recently [they aren't perfect - but useful in *some* circumstances].  The LTO is basically a CFC based transfer structure with public properties.  The LTO does not provide encapsulation since all variables can be publicly accessed.  Basically, the LTO models a structure and provides a nice interface [it's the developer's responsibility to use the LTO as read-only].

Best,
.Peter
-- 
Peter J. Farrell :: Maestro Publishing

blog	:: http://blog.maestropublishing.com
email	:: [EMAIL PROTECTED]

Create boilerplate beans!
Check out the Mach-II Bean Creator - free download.
http://blog.maestropublishing.com/mach-ii_beaner.htm

On Stardate 9567.39 which is Tuesday, I saw the light.
--
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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

Reply via email to