<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>※以下、seino様のコメントをもとに大幅に訂正。objective-cはC言語をオブジェクト指向化するために拡張した言語と言われています。iphoneアプリを書いていたときに、あるメソッドに引数をポインタ渡しし、そのメソッドで値を書き換えて、呼び出し元に戻ってくると思い込んでいたのですがうまくいかない。。。なぜだろう？と思いこのエントリーを書き始めました。結論を先に書きますと、seino様のご指摘の通り、ポインタ変数にはアドレスが格納されているものの、ポインタ変数自体は呼び出し元と呼び出し先では実体が異なるため（要は値渡し）、呼び出し先で内容を変更しても呼び出し元では変わらない、ということで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F20120428%2Fp1&quot; title=&quot;objective-cの引数渡し - memorandums&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/ke_takahashi/20120430/20120430094829.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-28 00:00:01</published>
  <title>objective-cの引数渡し</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/20120428/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
