Reputation: 34698
Im reading this and developing a virtual machine, Im stuck at reading constants because I don't know howmany bytes to read if the constant is a nil. How many bytes is a nil?
Upvotes: 1
Views: 324
Reputation: 72312
No bytes to be read after reading the type because the type says it all in this case. See http://www.lua.org/source/5.1/lundump.c.html#LoadConstants.
Upvotes: 4