Sean A Corfield wrote:
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]
