I don't have a link to the kludge. It's in the book, Discovering CFC's.
Basically, it looks like you'd add this code to your "parent" (in a new()
function that you would call right after invoking...
<cfargument name="subType" required="no">
<cfif isdefined('arguments.subType')>
<cfset child = arguments.subType>
<cfset structAppend(child, this, 'yes')>
<cfreturn child>
</cfif>
You'd add the same argument to your child in it's new function and this
additional code (all in the new function):
<cfinvoke component="myparent" method="new" subtype="#this#"
returnvariable="mynewchildobject">
<cfset this="mynewchildobject>
<cfif isdefined('arguments.subType')>
<cfset child=arguments.subType>
<cfset structappend(child, this, 'yes')>
<cfreturn child>
</cfif>
Of course, I'm a little confused by all this, so take it for what you will
(and maybe buy the book, which will explain it much better.)
-d
----- Original Message -----
From: "Ian Skinner" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 3:10 PM
Subject: RE: super scope
> can you provide that link, because were still 6.0 And I'm am in need of
just
> that thing, a way to Kluge the super scope.
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
>
> > -----Original Message-----
> > From: Deanna Schneider [mailto:[EMAIL PROTECTED]
> > Sent: Friday, September 19, 2003 1:07 PM
> > To: CF-Talk
> > Subject: super scope
> >
> >
> > Hi Folks,
> > I'm going through the Discovering CFC's book and I'm
> > currently reading the
> > chapter about how to kludge the "super" scope. With 6.1, this is now
> > unnecessary, apparently. Since I'm just learning about CFC's
> > (and we don't
> > have MX in production yet), I'm thinking I can skip learning
> > the kludge and
> > just learn the proper use of super. Problem is, I can't find
> > any examples of
> > how to use the super scope properly.
> >
> > Anyone have any?
> > -d
> >
> >
> >
> >
> > ---------------------------------------------------------
> > Deanna Schneider
> > UWEX-Cooperative Extension
> > Interactive Media Developer
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137760
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com