<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>woshidan</author_name>
  <author_url>https://blog.hatena.ne.jp/woshidan/</author_url>
  <blog_title>woshidan's blog</blog_title>
  <blog_url>https://woshidan.hatenablog.com/</blog_url>
  <categories>
    <anon>ObjectiveC</anon>
    <anon>C</anon>
  </categories>
  <description>C言語とObjective-Cでstatic修飾子をつけて変数を宣言したときの挙動 Javaを書いてからObjective-Cのコードを見ると驚くのですが、Objective-Cの元となっているC言語、およびObjective-Cでは関数やメソッド*1の中で有効であり、特にそう書いてない場合は初期化され直さずに存在し続けます。 // test.c int countUp(void) { static int count; count++: } int main(void) { countUp(); countUp(); countUp(); } // countUpが呼び出されるたびにcoun…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoshidan.hatenablog.com%2Fentry%2F2017%2F01%2F09%2F184638&quot; title=&quot;Objective-Cのクラス変数について - woshidan&amp;#39;s blog&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://images-fe.ssl-images-amazon.com/images/I/51H576W1YEL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-09 18:46:38</published>
  <title>Objective-Cのクラス変数について</title>
  <type>rich</type>
  <url>https://woshidan.hatenablog.com/entry/2017/01/09/184638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
