2006-04-20から1日間の記事一覧
今頃だけど。長いしコメントでなくこっちに。http://www.machu.jp/diary/20060411.html#p01かっこいい図が!ありがとうございます。この手の図が書ける子になるとプレゼンがラクになりそうで良い。コードは腐っています例のごとく1-2日仕事ですから。試行錯…
コンストラクタ呼出しの記法が Class("hoge") で、 new がいらないのがいい。このへんでも書いた。 @u ~/test/boo> cat class.boo class C: [Property(Id)] _id as int def constructor(i): _id = i c = C(1) print c.Id c.Id = 2 print c.Id i@u ~/test/boo…
http://boo.codehaus.org/Part+07+-+Functions組み込み関数が結構ある。無名関数がある。
i@u ~/test/boo> cat container.boo l = [1,2,3] a = (1,2,3) h = {'a':1,'b':2,'c':3} print l print a print h print l[:2] print a[:2] //print h[:2] i@u ~/test/boo> booi container.boo [1, 2, 3] System.Int32[] Boo.Lang.Hash [1, 2] System.Int32[]…
雨ふったから…