> This allows you to chain method calls, as others have noted, and will > probably help get you more into the habit of using <cfset> and method > calls (rather than <cfinvoke> which I also advise against).
Just to be clear, are you advising people to chain method calls? Personally, I'm not crazy about this practice. I find it much more difficult to read code that does several different things on one line. Additionally, it just seems unintuitive to have a setter method return a variable. If a setter returns a variable, I have to decide if it's meaningful in some way or if the guy before me was just being cute to save himself from having to type a few extra characters. Anyway, I'm just wondering if there's something I'm missing here. Ben Rogers http://www.c4.net v.508.240.0051 f.508.240.0057 > > Why? I think there's a psychological "hint" behind <cfobject> and > <cfinvoke> - they look like old-school tags and, hence, old school > thinking; whereas if you make a conscious effort to switch to <cfset> > and use createObject() / method calls directly, you'll get a "hint" > that this isn't just old-school tags and it'll help you switch gears > into new school (OO / CFC) thinking. > > > This part somewhat confuses me, but again, I'm using CFOBJECT and not > > "CreateObject" so I'm not really setting anything "equal" to anything. > > Which just reinforces my point about psychological hints above... > -- > Sean A Corfield -- http://www.corfield.org/ > Team Fusebox -- http://www.fusebox.org/ > Breeze Me! -- http://www.corfield.org/breezeme > Got Gmail? -- I have 6 invites to give away! > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188902 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

