If you specify a type that CFCs don't recognize, it assumes you mean another CFC. This allows you to define arguments that are instances of CFCs.
======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Deanna Schneider [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 02, 2002 11:00 AM > To: CF-Talk > Subject: CFC incorrect argument type - possible bug? > > > Hi Folks, > So, I've installed cfmx on the laptop and I'm playing around > with writing > cfc's, and I didn't RTFM. So, when I was setting up an > argument in the CFC, > I claimed it would have a type of "integer." (Seems like it > should be a > valid type, since it's a valid Java type, thinks me.) > > Anyway, CFC browses just fine, tells me what arguments are > expected, etc. > > Then, I try to use it, and pass in the value of "73" to the > CFC. Now, I get > an error saying that 73 is not an integer. > > I figured out that integer is not a valid type, switched it > to numeric, and > all is well....but why didn't the CFC error out claiming > invalid type? Why > does it only error when you try to use it and then with an > erroneous error? > Would you call this a bug? > > > Deanna Schneider > Interactive Media Developer > [EMAIL PROTECTED] > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm