- 87 名前:デフォルトの名無しさん mailto:sage [2010/02/13(土) 19:58:33 ]
- >>84,85 レスどうもです
いろいろいじってたらなんとなくわかってきた。 class Str class RichStr(val self:Str) { def eq2(rs:RichStr) = this eq rs def eq3(rs:RichStr) = self eq rs.self } implicit def str2richstr(str:Str) = new RichStr(str) val str = new Str str eq2 str // false str eq3 str // true 自分はこのeq2のようなのではと思ってたけど 実際にはeq3のような処理になってるのかな
|

|