<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ColdFusion arguments.callee</title>
	<atom:link href="http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/</link>
	<description>Life Through Math, Algorithms and Code</description>
	<lastBuildDate>Thu, 28 Jul 2011 23:40:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sean</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16323</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 09 Feb 2010 20:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16323</guid>
		<description>This got me part the way:
&lt;code&gt;thisCFCPage =  GetPageContext().getFusionContext().getPagePath();&lt;/code&gt;

Here&#039;s what&#039;s sad: There is this gem:

GetPageContext().getFusionContext().methodCalledName

but it&#039;s a private property and there is no getter function. ARRRGGGHHHHH!!!!!!</description>
		<content:encoded><![CDATA[<p>This got me part the way:<br />
<code>thisCFCPage =  GetPageContext().getFusionContext().getPagePath();</code></p>
<p>Here&#8217;s what&#8217;s sad: There is this gem:</p>
<p>GetPageContext().getFusionContext().methodCalledName</p>
<p>but it&#8217;s a private property and there is no getter function. ARRRGGGHHHHH!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16128</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Wed, 22 Jul 2009 09:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16128</guid>
		<description>@Ben

Seems my blog ate your code sample. Doh! I need to dump wordpress or upgrade and get code comments and blog post code working. It was a real pain to make this post too.

Can you post your code on http://gist.github.com/ perhaps?

I don&#039;t know what you mean by a different scope. I have a bunch of test cases here and they all work.</description>
		<content:encoded><![CDATA[<p>@Ben</p>
<p>Seems my blog ate your code sample. Doh! I need to dump wordpress or upgrade and get code comments and blog post code working. It was a real pain to make this post too.</p>
<p>Can you post your code on <a href="http://gist.github.com/" rel="nofollow">http://gist.github.com/</a> perhaps?</p>
<p>I don&#8217;t know what you mean by a different scope. I have a bunch of test cases here and they all work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16127</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Tue, 21 Jul 2009 13:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16127</guid>
		<description>I can&#039;t seem to get this to work if the function pointer is in another scope such as:



At this point, it looks like &quot;test&quot; is not a declared field in the template taken from the exception tag context.

Thoughts??</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this to work if the function pointer is in another scope such as:</p>
<p>At this point, it looks like &#8220;test&#8221; is not a declared field in the template taken from the exception tag context.</p>
<p>Thoughts??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aMeen</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16126</link>
		<dc:creator>aMeen</dc:creator>
		<pubDate>Sat, 18 Jul 2009 07:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16126</guid>
		<description>Got Lost ... I gave up  
:(</description>
		<content:encoded><![CDATA[<p>Got Lost &#8230; I gave up<br />
:(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Cameron</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16125</link>
		<dc:creator>Adam Cameron</dc:creator>
		<pubDate>Fri, 17 Jul 2009 14:51:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16125</guid>
		<description>Nope: no blog, me.  Well I do, but not a technical one.  I keep thinking about it, but I so seldom have anything worthwhile saying, I don&#039;t see the point.  

Most of the things I think of to say stem from what I read on other people&#039;s blogs, so I just stick my oar in as-and-when.  Not that today&#039;s effort was a shining example: I&#039;m usually better than that!

-- 
Adam</description>
		<content:encoded><![CDATA[<p>Nope: no blog, me.  Well I do, but not a technical one.  I keep thinking about it, but I so seldom have anything worthwhile saying, I don&#8217;t see the point.  </p>
<p>Most of the things I think of to say stem from what I read on other people&#8217;s blogs, so I just stick my oar in as-and-when.  Not that today&#8217;s effort was a shining example: I&#8217;m usually better than that!</p>
<p>&#8211;<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Nadel</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16124</link>
		<dc:creator>Ben Nadel</dc:creator>
		<pubDate>Fri, 17 Jul 2009 12:03:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16124</guid>
		<description>Elliott,

Very interesting stuff! I failed after 2 hours and I&#039;m satisfied in saying that I would NEVER have come up with this at all :D Nice work!</description>
		<content:encoded><![CDATA[<p>Elliott,</p>
<p>Very interesting stuff! I failed after 2 hours and I&#8217;m satisfied in saying that I would NEVER have come up with this at all :D Nice work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16123</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Fri, 17 Jul 2009 12:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16123</guid>
		<description>Hah, it&#039;s all good. Btw, do you have a blog? You&#039;re kind of a ghost around these parts.</description>
		<content:encoded><![CDATA[<p>Hah, it&#8217;s all good. Btw, do you have a blog? You&#8217;re kind of a ghost around these parts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Cameron</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16122</link>
		<dc:creator>Adam Cameron</dc:creator>
		<pubDate>Fri, 17 Jul 2009 11:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16122</guid>
		<description>Yep, as per other discussion, you&#039;re dead right.  Sorry for the confusion (albeit it&#039;s mostly on my part, it seems ;-)

Cheers.

-- 
Adam</description>
		<content:encoded><![CDATA[<p>Yep, as per other discussion, you&#8217;re dead right.  Sorry for the confusion (albeit it&#8217;s mostly on my part, it seems ;-)</p>
<p>Cheers.</p>
<p>&#8211;<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16121</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Fri, 17 Jul 2009 11:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16121</guid>
		<description>@Adam

Okay I just found your function in the &quot;other forum&quot;. Your getCurrentFunctionName() does *not* do what this blog post is about, or what the entire thread is about that you posted that function on. It doesn&#039;t address the ER either.

Your post does *not* return the called function name. It returns the declared function name.

I&#039;d suggest you reread the ER and this blog post again. You seem to be confused. :)</description>
		<content:encoded><![CDATA[<p>@Adam</p>
<p>Okay I just found your function in the &#8220;other forum&#8221;. Your getCurrentFunctionName() does *not* do what this blog post is about, or what the entire thread is about that you posted that function on. It doesn&#8217;t address the ER either.</p>
<p>Your post does *not* return the called function name. It returns the declared function name.</p>
<p>I&#8217;d suggest you reread the ER and this blog post again. You seem to be confused. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott</title>
		<link>http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/comment-page-1/#comment-16120</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Fri, 17 Jul 2009 10:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.elliottsprehn.com/blog/2009/07/16/coldfusion-argumentscallee/#comment-16120</guid>
		<description>@Adam

I don&#039;t remember you posting anything remotely like this. My suggested function for getting the called name also doesn&#039;t address the use case for the function in this blog post.

arguments.udfs.func1 = myFunction;
arguments.udfs.func1(1);

The called name here is func1, but knowing it doesn&#039;t let us get a reference to ourself from inside that function since there&#039;s no way to know the UDF is inside another struct without scanning every scope.

I&#039;m curious to know what function you wrote that you think solves this as there&#039;s no other way to get a function pointer to yourself regardless of the calling context.

Especially in a case like this which models passing a function to another function like map or fold.

// template A.cfm
function a() {}
request.a = a;

// template B.cfm
b = request.a;
request.a = 1;
b();

What &quot;technique&quot; do you think is more simple that solves this?</description>
		<content:encoded><![CDATA[<p>@Adam</p>
<p>I don&#8217;t remember you posting anything remotely like this. My suggested function for getting the called name also doesn&#8217;t address the use case for the function in this blog post.</p>
<p>arguments.udfs.func1 = myFunction;<br />
arguments.udfs.func1(1);</p>
<p>The called name here is func1, but knowing it doesn&#8217;t let us get a reference to ourself from inside that function since there&#8217;s no way to know the UDF is inside another struct without scanning every scope.</p>
<p>I&#8217;m curious to know what function you wrote that you think solves this as there&#8217;s no other way to get a function pointer to yourself regardless of the calling context.</p>
<p>Especially in a case like this which models passing a function to another function like map or fold.</p>
<p>// template A.cfm<br />
function a() {}<br />
request.a = a;</p>
<p>// template B.cfm<br />
b = request.a;<br />
request.a = 1;<br />
b();</p>
<p>What &#8220;technique&#8221; do you think is more simple that solves this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

