LoginSignup
0
1

More than 5 years have passed since last update.

Lua 覚え書き

Last updated at Posted at 2016-12-27

気付いたこと。ぶち当たったことをつらつらと・・

ターゲットとしているLuaのバージョンに有効なコードを書かないとダメ

テーブルのインデックス最大数を取得する

table.maxn() は Lua5.1 で追加されたものだけど、Lua 5.3.3 などで使用すると

  [attempt to call a nil value (field 'maxn')]

とエラーが出る。

(*).stackoverflow の投稿より
Missing functions in Table Library in Lua

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1