2008-09-11から1日間の記事一覧

puts, pp, dump

kz> "abc" puts; > abc kz> "abc" pp; > "abc" kz> "abc" dump; > "abc" { * this = "abc"; `+` = #fun(String.`+`); `<=` = #fun(String.`<=`); `<` = #fun(String.`<`); `==` = #fun(String.`==`); `>=` = #fun(String.`>=`); `>` = #fun(String.`>`); `^=…

this と super と parent その3

結局こうなるようにしてみた。 kz> this puts; > 3 times:{|| parent.this puts; }; > LOBBY(0x1BEFAB0) LOBBY(0x1BEFAB0) LOBBY(0x1BEFAB0) LOBBY(0x1BEFAB0) parent と書いた場合、this.parent ではなく local.parent を見るようにした expr.this を受け入…