<div class="chatlog__message-group"> <div id="chatlog__message-container-581312156339798016" class="chatlog__message-container" data-message-id="581312156339798016"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/293624673265123328/accd07acc220a18568ba46a6e9ede18a.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(17,128,106)" title="koher" data-user-id="293624673265123328">koher</span> <a href="/channels/375206337937801216?category=main&channel=swift-zatsu&message_id=581312358547193897"><span class="chatlog__timestamp" title="Friday, May 24, 2019 2:46 AM"></span></a><a href="#chatlog__message-container-581312156339798016">5/24/2019 2:46 AM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">たまたまかもしれないけど、意図的に取り出す <code class="chatlog__markdown-pre chatlog__markdown-pre--inline">return bp</code> と意図せずやってしまうキャプチャとでは、後者だけ防げるのは意味がある気がする。</span></div> </div> </div> </div> <div id="chatlog__message-container-581312358547193897" class="chatlog__message-container" data-message-id="581312358547193897"> <div class="chatlog__message"> <div class="chatlog__message-aside"> <div class="chatlog__short-timestamp" title="Friday, May 24, 2019 2:47 AM">2:47 AM</div> </div> <div class="chatlog__message-primary"> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">歴史的経緯だけなら、ポインタ書き換えを防ぐ処理を入れるくらいだったら、その時点で <code class="chatlog__markdown-pre chatlog__markdown-pre--inline">inout</code> を外すことを検討しても良さそうな気も。</span></div> </div> </div> </div> </div>