2008-11-15から1日間の記事一覧
昨日の件http://d.hatena.ne.jp/ryugate/20081114#p2を、まとめてみた。まず、以下の様なソースがある。 class ExString(val str:String) { def plushoge = str + "-hoge" } implicit def str2exstr(str:String) = new ExString(str) class SomeClass { def …
昨日の件http://d.hatena.ne.jp/ryugate/20081114#p2を、まとめてみた。まず、以下の様なソースがある。 class ExString(val str:String) { def plushoge = str + "-hoge" } implicit def str2exstr(str:String) = new ExString(str) class SomeClass { def …