2009-06-01から1ヶ月間の記事一覧
Objective C のメソッドは C++ でいうところの virtual なのだろうか? #include <stdio.h> #import <objc/Object.h> @interface B : Object - (void)speak; @end @implementation B - (void)speak { printf("speak B\n"); } @end @interface D : B - (void)speak; @end @implementat</objc/object.h></stdio.h>…
perl で強制的にスカラーコンテキストで評価するには scalar を用いるが,強制的にリストコンテキストで評価するための list (仮称) は用意されていない.man perlfunc の scalar の項によると,これは実質的には全く必要無いからだそうであるが,両コンテキ…
git clone したものを単に引数なしで git push すると警告が出る. warning: You did not specify any refspecs to push, and the current remote warning: has not configured any push refspecs. The default action in this warning: case is to push all…