{"url":"https://faithandbrave.hateblo.jp/entry/20080520/1211274097","width":"100%","provider_name":"Hatena Blog","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080520%2F1211274097\" title=\" Structual Subtyping - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://faithandbrave.hateblo.jp/","author_name":"faith_and_brave","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","provider_url":"https://hatena.blog","description":"\u9759\u7684\u30c0\u30c3\u30af\u30bf\u30a4\u30d4\u30f3\u30b0\u306e\u3088\u3046\u306a\u3082\u306e\u300cT\u306fxx\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3063\u3066\u3044\u308c\u3070\u3044\u3044\u578b\u300d\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u30d9\u30bf\u30fc Generics \u3067\u3059 object Foo { def name = \"Foo\" } object Bar { def name = \"Bar\" } object Main { def dispName(x :{def name: String}) = println(x.name) def main(args : Array[String]): Unit = { dispName(Foo) dispName(Bar) } } Foo Bar List \u306a\u3069\u306e\u578b\u5f15\u6570\u306b\u3082\u6307\u5b9a\u3067\u304d\u308b object\u2026","height":"190","title":" Structual Subtyping","type":"rich","categories":["Scala"],"version":"1.0","published":"2008-05-20 18:01:37","image_url":null}