Not to mention the fact that with optional arguments, we've practically already got overloaded methods. Yes, it's a lot of logic branching, but if it's gotta be runtime, that's a much better way to do it.
-- Eric C. Davis Programmer/Analyst I Georgia Department of Transportation Office of I.T. Applications Web Applications Group 404.463.2860.199 [EMAIL PROTECTED] -----Original Message----- From: Sean A Corfield [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 3:24 PM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] <cfmethod> On Dec 29, 2003, at 12:08 PM, Adam Cameron wrote: > I was thinking of entering a "wishlist" suggestion to MM along the > lines > of a <cfmethod> tag that could be used in a CFC to faciliate > overloadable methods. Overloading works by analyzing a function call against the possible function signatures that can be called. The set of available functions to call is filtered down to just those that can actually be called with the given arguments. Then that set is reduced to a "best match". That sort of analysis is expensive and that's why it's a compile-time feature of Java, C++ etc. ColdFusion is a type-less language (almost) so the only way overloading could be implemented in CF is at runtime. The overhead would be prohibitive. Sean A Corfield -- http://www.corfield.org/blog/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
