Lua code now uses struct constructors and methods, including user-defined NSRange methods.