Hopefully this will go through...

The problem is with the way CFML is compiled.  You can't make those
compile-time checks work consistently, because changing a one class
doesn't require recompiling other dependant classes.  In other words,
CF doesn't recompile a CFC that extends another CFC when that second
CFC gets recompiled.  Therefore your "claim to implement" status would
be invalid as soon as that happened in the same scenario with
interfaces rather than inheritance.  The same thing happens with
dynamically assembled objects.  I.e. I create a CFC that FAILS the
interface method check, but then dynamically add some methods to make
it legal.  In that scenario, I'd want to be able to pass the instance
of the CFC as the interface.  CF simply can't do any sort of
compile-time checking of your application; it's a runtime language,
and intentionally so.

cheers,
barneyb

On 10/13/05, Chris Stoner <[EMAIL PROTECTED]> wrote:
> On 10/13/05, David Ross <[EMAIL PROTECTED]> wrote:
> > The type checking is the most important feature, as it enables you to...
>
>
> While your second solution is a resonable idea, why would you not marry it
> with compile time vaildation and your extended (improved) "method not
> implemented" error messages?  I agree that runtime interface
> validation/method checking would be a hog but there is no reason that the
> object cannot earn the right to "claim to implement" at compile time.
>
> I dislike people who are intolerant of other people's cultures and the Dutch
>
> ----------------------------------------------------------
>
>  You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
>  CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
>  CFCDev is supported by New Atlanta, makers of BlueDragon
>  http://www.newatlanta.com/products/bluedragon/index.cfm
>
>  An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]


--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

Reply via email to