Yeah Ray, I meant that this point is brought up regularly on this list and
explained away without any talk about inheritence and it might lead one to
believe that ONLY a Jedi instance is applicable. I have chatted with you so
I thought you could point this out as you now have. Now if you would have
explained how to allow multiple unrelated CFCs to be returned you would
have come full circle  to returnType="component" from Mr. Gibbs example...
;-)

Brendan






"Raymond Camden" <[EMAIL PROTECTED]>@cfczone.org on 09/22/2003 04:36:30
PM

Please respond to [EMAIL PROTECTED]

Sent by:    [EMAIL PROTECTED]



To:    <[EMAIL PROTECTED]>
cc:


Subject:    RE: [CFCDev] Storing Objects in App Scope


Didn't we talk about this on IM one day? :) With inheritance, it works
logically. Consider:

A Dog is a Poodle.
Not all dogs are poodles.

If you set returnType="dog" and return a poodle, it's ok.
If you set returnType="poddle" and return a dog, CF will throw an error.

In your specific example, it will work fine since all JediMasters and
Jedi Apprentices are Jedis. I blogged about this as well.

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Brendan O'Hara
> Sent: Monday, September 22, 2003 2:17 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [CFCDev] Storing Objects in App Scope
>
>
>
> Ray,
>
> What about inheritence?
>
> Say you have a JediMaster CFC and a  JediApprentice CFC which
> inherit from the parent Jedi CFC. Then using your example you
> make your returntype="Jedi" when it might actually return an
> instance of JediMaster or JediApprentice .
>
> Is that what you are doing?
>
> Brendan
>
>


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word '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 word '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]

Reply via email to