2006-05-24から1日間の記事一覧

PPerl

Perl Hacks読んでたらPPerlなんてのが紹介されてた。 This program turns ordinary perl scripts into long running daemons, making subsequent executions extremely fast. It forks several processes for each script, allowing many proceses to call t…

const に対する numeric_limits

C++

#include <iostream> #include <limits> int main() { std::cout << std::numeric_limits<const int>::max() << std::endl; return 0; }上のソースをコンパイルして実行したら0が出力された。 numeric_limits に const な型を使ってはいけないらしい。gcc4、VS2005両方で同じ挙動だったの</const></limits></iostream>…

Data::Dumper

Perl Hacks 読んでて初めて知ったんだけど、Data::Dumper ってデータ保存のモジュールだったのね。今までデバッグ用のモジュールだとばかり思ってた。