2004-06-27から1日間の記事一覧

例外クラスを外から指定

昨日適当に書いたC++の例ではだめでした。 #include<cstdio> class exception { virtual void dummy(){} //for VMT }; void func(exception const & error) { throw error; } int main() { class a : public exception { }; try{ func(a()); }catch(a&){ std::printf</cstdio>…

The LLVM Compiler Infrastructure

バックエンド候補その2。http://llvm.cs.uiuc.edu/ただしWindows向けには作られて無かったです。Linux/Sparc/Mac。