{"provider_name":"Hatena Blog","published":"2021-09-09 21:56:42","provider_url":"https://hatena.blog","title":"86\u65e5\u76ee ","categories":["Swift"],"author_name":"gurrium","blog_title":"\u305c\u306e\u305c","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiarrium.hatenablog.com%2Fentry%2F2021%2F09%2F09%2F215642\" title=\"86\u65e5\u76ee  - \u305c\u306e\u305c\" 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://giarrium.hatenablog.com/","url":"https://giarrium.hatenablog.com/entry/2021/09/09/215642","width":"100%","author_url":"https://blog.hatena.ne.jp/gurrium/","type":"rich","height":"190","image_url":null,"description":"\u65e5\u8a18 \u4eca\u65e5\u306e\u5915\u3054\u98ef\u306f\u3081\u3061\u3083\u304f\u3061\u3083\u96d1\u3060\u3063\u305f \u4eca\u65e5\u66f8\u3044\u305f\u30b3\u30fc\u30c9 var tup = (x: 0, y: 2) func b(_ x: inout Int, _ y: inout Int) { let tmp = x x = y y = tmp } b(&tup.x, &tup.y) // error _ = { var tup = (x: 0, y: 2) func b(_ x: inout Int, _ y: inout Int) { let tmp = x x = y y = tmp } b(&tup.x, &tup.y) // ok }() \u611f\u60f3 \u306a\u3093\u3067\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3060\u3068memory safe\u2026"}