<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Lua</anon>
  </categories>
  <description>入門Luaプログラミングを読んでいると、次のような記述がありました。 関数内にreturn文が存在しない場合は関数の出力がないということなので、nilが戻り値になる、と考えます。 入門Luaプログラミング P.33 「と考えます」が気になったのですが、次のような関数の場合はnilが返るのかな？と思って試してみたところ…。 function f() end 戻り値を表示してみる。 print(f()) 結果。 なにも表示されない。 ぢゃ、型は？ print(type(f())) 結果、エラーになりました。 nilを返す関数と比べてみると。 function g() return nil end …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20091222%2F1261489889&quot; title=&quot;Luaの戻り値のない関数の戻り値 - エンジニアのソフトウェア的愛情&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-12-22 22:51:29</published>
  <title>Luaの戻り値のない関数の戻り値</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/20091222/1261489889</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
