<?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: C++기반의 closure</title>
	<atom:link href="http://rein.kr/blog/archives/485/feed" rel="self" type="application/rss+xml" />
	<link>http://rein.kr/blog/archives/485</link>
	<description>프로그래머, 독서가, 게이머 그리고 블로거</description>
	<lastBuildDate>Thu, 02 Feb 2012 07:21:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19800</generator>
	<item>
		<title>By: rein</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-20223</link>
		<dc:creator>rein</dc:creator>
		<pubDate>Sat, 05 Apr 2008 04:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-20223</guid>
		<description>kalstein / 그 경우엔 제가 의도한 목적과 부합되지 않습니다. 제가 원한건 객체와 그 멤버함수 그리고 그에 대한 인자들이 있을 때 별다른 신경을 안 쓰고도 나중에 호출할 수 있는 래퍼를 만들려는 것입니다.

boost::Bind를 다 쓰고나서 생성자에 옮기면 라이브러리(?)야 간단해지지만 호출하는 사람은 boost::bind를 사용하는 귀찮음이 있지요.

물론 MakeClosure()에서 말씀하신 방법을 쓸 수 있지만, 생성 시점 / 호출 시점이 다를 수 밖에 없는 이런 방식에서는 나중에 디버깅을 편하게 하려고 인자를 쉽게 볼 수 있는 형태로 분해해두는게 조금 더 편합니다(...)</description>
		<content:encoded><![CDATA[<p>kalstein / 그 경우엔 제가 의도한 목적과 부합되지 않습니다. 제가 원한건 객체와 그 멤버함수 그리고 그에 대한 인자들이 있을 때 별다른 신경을 안 쓰고도 나중에 호출할 수 있는 래퍼를 만들려는 것입니다.</p>
<p>boost::Bind를 다 쓰고나서 생성자에 옮기면 라이브러리(?)야 간단해지지만 호출하는 사람은 boost::bind를 사용하는 귀찮음이 있지요.</p>
<p>물론 MakeClosure()에서 말씀하신 방법을 쓸 수 있지만, 생성 시점 / 호출 시점이 다를 수 밖에 없는 이런 방식에서는 나중에 디버깅을 편하게 하려고 인자를 쉽게 볼 수 있는 형태로 분해해두는게 조금 더 편합니다(&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kalstein</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-20218</link>
		<dc:creator>kalstein</dc:creator>
		<pubDate>Sat, 05 Apr 2008 02:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-20218</guid>
		<description>boost::Bind를 써서...void (void) 형태의 함수객체형태로 변환하고, 이를 생성자 인자로 받도록 하는 방법이 좀 더 편하지않을까요. ^^</description>
		<content:encoded><![CDATA[<p>boost::Bind를 써서&#8230;void (void) 형태의 함수객체형태로 변환하고, 이를 생성자 인자로 받도록 하는 방법이 좀 더 편하지않을까요. ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rein's world</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-8748</link>
		<dc:creator>rein's world</dc:creator>
		<pubDate>Sun, 23 Dec 2007 13:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-8748</guid>
		<description>&lt;strong&gt;Boost::preprocessor 로 템플릿 코드 생성...&lt;/strong&gt;

어제 일종의 지연된 함수 호출 클래스 구현에 관해서 포스팅을 했다. (제한된 Closure라기보단 이 쪽 의미에 가까운 것 같다) 거기에다가 &#8220;뭔가 인자 수에 따라 다 정의해야 하는 것을 피할 ...</description>
		<content:encoded><![CDATA[<p><strong>Boost::preprocessor 로 템플릿 코드 생성&#8230;</strong></p>
<p>어제 일종의 지연된 함수 호출 클래스 구현에 관해서 포스팅을 했다. (제한된 Closure라기보단 이 쪽 의미에 가까운 것 같다) 거기에다가 &#8220;뭔가 인자 수에 따라 다 정의해야 하는 것을 피할 &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rein</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-8740</link>
		<dc:creator>rein</dc:creator>
		<pubDate>Sun, 23 Dec 2007 05:09:28 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-8740</guid>
		<description>ipkn / boost::PP를 쓰면 다인자 처리가 가능하긴 하구나 -_-a
근데 이걸 나 말고 누가 유지보수할 수 있을런지는...</description>
		<content:encoded><![CDATA[<p>ipkn / boost::PP를 쓰면 다인자 처리가 가능하긴 하구나 -_-a<br />
근데 이걸 나 말고 누가 유지보수할 수 있을런지는&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rein</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-8728</link>
		<dc:creator>rein</dc:creator>
		<pubDate>Sun, 23 Dec 2007 01:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-8728</guid>
		<description>Rica / 역시 세상에 왕도는 없는건가;</description>
		<content:encoded><![CDATA[<p>Rica / 역시 세상에 왕도는 없는건가;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rein</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-8727</link>
		<dc:creator>rein</dc:creator>
		<pubDate>Sun, 23 Dec 2007 01:49:36 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-8727</guid>
		<description>ipkn / 그 부분은 조건에 &quot;일정 시간 동안 persistent&quot;하다고 한게 그 의미였음. 사실 내가 쓰는 거에선 리퍼런스 카운터를 쓰고 + 저기서 protected인 멤버 변수들이 좀 다른 의미로 이용되지;

 * T 타입이 정말로 persistent한 객체이거나(주로 싱글턴)
 * T 타입의 리퍼런스 카운터를 조절할 방법을 저 Closure를 상속받은 클래스의 생성/소멸에서 컨트롤 하는 방법을 사용하거나

해서 조절되게하지.</description>
		<content:encoded><![CDATA[<p>ipkn / 그 부분은 조건에 &#8220;일정 시간 동안 persistent&#8221;하다고 한게 그 의미였음. 사실 내가 쓰는 거에선 리퍼런스 카운터를 쓰고 + 저기서 protected인 멤버 변수들이 좀 다른 의미로 이용되지;</p>
<p> * T 타입이 정말로 persistent한 객체이거나(주로 싱글턴)<br />
 * T 타입의 리퍼런스 카운터를 조절할 방법을 저 Closure를 상속받은 클래스의 생성/소멸에서 컨트롤 하는 방법을 사용하거나</p>
<p>해서 조절되게하지.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rica</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-8719</link>
		<dc:creator>Rica</dc:creator>
		<pubDate>Sun, 23 Dec 2007 01:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-8719</guid>
		<description>일반화된 지연 호출; 인자 개수마다 만들어주는거 끔찍하지. PHP로 코드 제너레이터 만들어서 발랐던 기억이 있는데 이거였는지 딴거였는지 가물가물하다.

lua_tinker같은 것도 인자 개수마다 템플릿을 만들던데 뭐 뾰족한 수가 없지 싶다. BOOST_PP 가 반복되는 부분을 많이 줄여주긴 하지만 기본적으로 C 전처리기 가지고 코드제너레이션을 하는 것이기 때문에 수정하기 매우 까다롭지.</description>
		<content:encoded><![CDATA[<p>일반화된 지연 호출; 인자 개수마다 만들어주는거 끔찍하지. PHP로 코드 제너레이터 만들어서 발랐던 기억이 있는데 이거였는지 딴거였는지 가물가물하다.</p>
<p>lua_tinker같은 것도 인자 개수마다 템플릿을 만들던데 뭐 뾰족한 수가 없지 싶다. BOOST_PP 가 반복되는 부분을 많이 줄여주긴 하지만 기본적으로 C 전처리기 가지고 코드제너레이션을 하는 것이기 때문에 수정하기 매우 까다롭지.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ipkn</title>
		<link>http://rein.kr/blog/archives/485/comment-page-1#comment-8707</link>
		<dc:creator>ipkn</dc:creator>
		<pubDate>Sat, 22 Dec 2007 19:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://rein.kr/blog/archives/485#comment-8707</guid>
		<description>어라, 궁금한게 m_Obj의 삭제도 신경써야 하는거 아닌가요? 언제 호출될지 모르면.. 살짝 미묘하네요. (int 같은 경우도있고요)

저는 다인자 처리할때 BOOST_PP를 쓰고 아무도 유지보수할수없는 코드를 만들었습니다 &gt;ㅁ&lt; (패킷이랑 디비에서)</description>
		<content:encoded><![CDATA[<p>어라, 궁금한게 m_Obj의 삭제도 신경써야 하는거 아닌가요? 언제 호출될지 모르면.. 살짝 미묘하네요. (int 같은 경우도있고요)</p>
<p>저는 다인자 처리할때 BOOST_PP를 쓰고 아무도 유지보수할수없는 코드를 만들었습니다 &gt;ㅁ&lt; (패킷이랑 디비에서)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

