<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=NeoLua%E3%81%AE%E5%80%A4%E3%81%A8%E5%9E%8B</id>
	<title>NeoLuaの値と型 - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=NeoLua%E3%81%AE%E5%80%A4%E3%81%A8%E5%9E%8B"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=NeoLua%E3%81%AE%E5%80%A4%E3%81%A8%E5%9E%8B&amp;action=history"/>
	<updated>2026-07-21T05:10:53Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=NeoLua%E3%81%AE%E5%80%A4%E3%81%A8%E5%9E%8B&amp;diff=10374&amp;oldid=prev</id>
		<title>imported&gt;Administrator: ページの作成:「純正Luaは動的型付け言語だが、NeoLuaは型推論であり変数は常に特定の「型」を持つ。この点が純正Luaとは大...」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=NeoLua%E3%81%AE%E5%80%A4%E3%81%A8%E5%9E%8B&amp;diff=10374&amp;oldid=prev"/>
		<updated>2018-10-22T01:58:34Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「純正&lt;a href=&quot;/wiki/Lua&quot; title=&quot;Lua&quot;&gt;Lua&lt;/a&gt;は&lt;a href=&quot;/wiki/%E5%8B%95%E7%9A%84%E5%9E%8B%E4%BB%98%E3%81%91%E8%A8%80%E8%AA%9E&quot; title=&quot;動的型付け言語&quot;&gt;動的型付け言語&lt;/a&gt;だが、&lt;a href=&quot;/wiki/NeoLua&quot; class=&quot;mw-redirect&quot; title=&quot;NeoLua&quot;&gt;NeoLua&lt;/a&gt;は&lt;a href=&quot;/wiki/%E5%9E%8B%E6%8E%A8%E8%AB%96&quot; title=&quot;型推論&quot;&gt;型推論&lt;/a&gt;であり&lt;a href=&quot;/wiki/%E5%A4%89%E6%95%B0&quot; title=&quot;変数&quot;&gt;変数&lt;/a&gt;は常に特定の「&lt;a href=&quot;/wiki/%E5%9E%8B&quot; class=&quot;mw-redirect&quot; title=&quot;型&quot;&gt;型&lt;/a&gt;」を持つ。この点が純正Luaとは大...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;純正[[Lua]]は[[動的型付け言語]]だが、[[NeoLua]]は[[型推論]]であり[[変数]]は常に特定の「[[型]]」を持つ。この点が純正Luaとは大きく異なる。&lt;br /&gt;
&lt;br /&gt;
[[NeoLua]]の型は[[.NET]]の型に対応するものがほぼ存在する。なお、.NETの[[dynamic型]]もサポートされているので、dynamic型を使えば純正Luaっぽく動的型付け言語として使えないこともない。&lt;br /&gt;
&lt;br /&gt;
対応表&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!NeoLua&lt;br /&gt;
!.NET&lt;br /&gt;
!備考&lt;br /&gt;
|-&lt;br /&gt;
|nil&lt;br /&gt;
|System.Object&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|false/true&lt;br /&gt;
|System.Boolean&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|System.Double&lt;br /&gt;
|小数点がある場合はDouble型になる。&lt;br /&gt;
|-&lt;br /&gt;
|number&lt;br /&gt;
|System.IntXX&lt;br /&gt;
|数値の大きさで自動的に決まる&lt;br /&gt;
|-&lt;br /&gt;
|string&lt;br /&gt;
|System.String&lt;br /&gt;
|純正Luaの文字列はバイト配列だがNeoLuaはString型な点に注意&lt;br /&gt;
|-&lt;br /&gt;
|function&lt;br /&gt;
|System.Delegate&lt;br /&gt;
|functionはデリゲートにコンパイルされる。つまり関数ポインタになる。&lt;br /&gt;
|-&lt;br /&gt;
|userdata&lt;br /&gt;
|&lt;br /&gt;
|存在せず&lt;br /&gt;
|-&lt;br /&gt;
|thread&lt;br /&gt;
|&lt;br /&gt;
|存在せず&lt;br /&gt;
|-&lt;br /&gt;
|table&lt;br /&gt;
|Neo.IronLua.LuaTable&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
型変換の法則&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local a = 23 + &amp;quot;42&amp;quot;; -- 32ビット整数&lt;br /&gt;
local b = 23 .. &amp;quot;42&amp;quot;; -- 文字列&lt;br /&gt;
local c : byte = &amp;quot;23&amp;quot;; -- 8ビット整数&lt;br /&gt;
local d : int = nil; -- 整数型が明示されている場合は「nil」は「0」になる&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[カテゴリ:NeoLua]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Administrator</name></author>
	</entry>
</feed>