term.write supports any kind of type: However, the way it is printed is different:
tables will print "table: 0xADDRESS" instead of a serialized version of it.
nil will cause an error, instead of printing nothing.
numbers will print their tostring form, but they should be formatted to atleast the tens place.
numbers with exponents will print in lowercase form, and have a + for positive numbers
numbers with exponents also fail to print to atleast the tens place. EX 1e100 -> 1.0E100
numbers that evaluate to infinity will print "inf" instead of "Infinity"
numbers that evaluate to -infinity will print "-inf" instead of "-Infinity"
functions will print "function: 0xADDRESS" instead of nothing
threads will print "thread: 0xADDRESS" instead of nothing
I should mention that write and writeLine also have their input serialized, and not serializing it does infact break a program on the ComputerCraft forums (which is how I found that)
term.write supports any kind of type: However, the way it is printed is different:
tables will print "table: 0xADDRESS" instead of a serialized version of it. nil will cause an error, instead of printing nothing. numbers will print their tostring form, but they should be formatted to atleast the tens place. numbers with exponents will print in lowercase form, and have a + for positive numbers numbers with exponents also fail to print to atleast the tens place. EX 1e100 -> 1.0E100 numbers that evaluate to infinity will print "inf" instead of "Infinity" numbers that evaluate to -infinity will print "-inf" instead of "-Infinity" functions will print "function: 0xADDRESS" instead of nothing threads will print "thread: 0xADDRESS" instead of nothing
Examples: