9/19/2023 0 Comments Opencomputers lua txt write![]() Binary mode in this implementation determines whether to use UTF-8 aware string functions or not, when reading a number of chars (e.g. io.open does not support the + modes, i.e.If someone could be bothered to reimplement that using coroutines that'd be pretty cool. They may return error strings that differ from vanilla Lua, though, but since that uses C library errors for the most part, which are platform dependent, it's not a very good idea to use these for program logic anyway. The original functions from the io library have been reimplemented for the most part, and work on mounted filesystem components and term.read / term.write for the standard input / output.įor the most part these should be functionally equivalent to the standard Lua implementation. The original functions from the bit32 library are available without alteration. math.randomseed is applied to that instance.math.random uses a separate instance for each Lua state / computer.The original functions from the math library are available with minor alterations. ![]() The original functions from the table library are available without alteration. To help you work work with UTF-8 strings, there is an additional library, the Unicode API. Note that the functions of the GPU API work on UTF-8 strings, and, by extension, so does term.write and print. The original functions from the string library are available without alterations. The latter two are missing because it is impossible to load C code in OpenComputers. It should operate the same as the original, but is lacking the following functions: The package module got a reimplementation for OpenComputers. This should not be noticeable from user code, however. Note that the coroutine.resume and coroutine.yield implementations exposed to user code are wrappers that take care of aborting code that does not yield after a certain time (see config), and to allow differentiating system yields from user yields (system yields "bubble", for example this is used for the shutdown command and component API calls). ![]() The original functions from the coroutine library are available with no observable differences.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |