On Tuesday, Jan 28, 2003, at 12:49 US/Pacific, Jon Gunnip wrote: > Is there a way to pass arguments at the time of cfc object creation?
No, not with the current version of the language. > My current process means two things that I don't want to do: > 1) create the cfc object and then initialize it > 2) check in each cfc function to ensure that the initialization > occurred Yup, that's what you have to do today. > I would like to: > 1) pass in initialization parameters at the time of object creation, > whereby > all objects will automatically be initialzed and each function will > not have > to check for initialization. That would be possible if CFCs had 'proper' constructors. Several people have suggested this would be a good enhancement for a future version of ColdFusion. Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

