> On Saturday, Aug 30, 2003, at 22:16 US/Pacific, S. Isaac
> Dealey wrote:
>> <cffunction name="f2" access="public">
>>   <cfreturn this.f()>
>> </cffuntion>

> Invoking 'f()' via 'this' scope causes it to be treated as
> an 'outside'
> call (so you can't call private methods). You should use
> 'variables.f()' (in CFMX6.1) or just 'f()' (in CFMX6.0).

Yea, I noticed that... somebody else suggested leaving off
this, so I figured it out after he suggested it...

It's unfortunate tho... because it prevents there being any
way to insulate methods against namespace conflicts between
method arguments and function names when private access is
specified... If you have an argument and a method with the
same name, there's no way to access the method without using
this.methodname() -- but you can't do that if methodname is
a private method -- so... you have to chose between the
argument name and the private access for the function. Maybe
that seems petty -- it's just really annoying to me... imho
calls to this scoped methods should be private.

s. isaac dealey                972-490-6624

team macromedia volunteer
http://www.macromedia.com/go/team

chief architect, tapestry cms  http://products.turnkey.to

onTap is open source           http://www.turnkey.to/ontap


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to