ohaiさんとこより。http://www.kmc.gr.jp/~ohai/diary/?date=20051120#p01すばらしい。好きなところの変数を curry 化したかったので、 Boost::bind チックに。 class Symbol def bind(*p1) proc do |*p2| obj, *args = p1.map do |a| (a == :_) ? p2.shift …
http://shinh.skr.jp/koneta/reflection_cpp.tar.gz以下のようなクラス階層から、 struct C { virtual void f() {} }; struct D : public C { }; struct E { }; struct F : public C, public E{ };以下のような情報を実行時に吐けるようになりました。 C <= …
http://shinh.skr.jp/koneta/reflection_cpp.tar.gz以下のように、 Test クラス内の test ではじまっているメソッドをイテレートして呼び出せます。 #include "reflection.h" #include <iostream> #include <cstring> using namespace std; class Test { void test_func1(); voi</cstring></iostream>…