Holy crap, you're right, John! You don't need to use "this" to call an implicit method internally. I guess my belief that that was necessary came from the original beta, as you suggest.
Thanks for opening my eyes, Bob On Tue, Feb 16, 2010 at 8:22 AM, John Whish <[email protected]>wrote: > Thanks for the feedback, I was curious to see if there was a > general consensus. > > I'm pretty sure that you don't need to prefix calls the implied getters and > setters in CF9 with this. You did in the CF9 beta, but I think they changed > that for the final release. I'll check that and report back when I get the > chance! > > I used to always have getters and setters, as it feels like better > encapsulation, however my classes ended up having a bunch of "dumb" get/set > methods so accessing the private instance variables scope directly seems > like the pragmatic way to go. I did consider using onMissingMethod, but that > adds overhead and you do have to prefix with this. > > - John > > -- > You received this message because you are subscribed to the Google Groups > "CFCDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<cfcdev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/cfcdev?hl=en. > -- Bob Silverberg www.silverwareconsulting.com Hands-on ColdFusion ORM Training @ cf.Objective() 2010 www.ColdFusionOrmTraining.com -- You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en.
