Outputs a list of values (in the main chat window by default).
The default print handler prints all values passed to it, separated by spaces, to the default chat frame.
Values are passed through tostring()
, so only number and string values are output in a literal form: tables, functions and userdata are output as a memory address preceded by their type. This behavior can be customized by using setprinthandler()
to designate an alternate function for output.
See also Debugging and Profiling functions.
Signature:
print(...)
Arguments:
...
- A list of values to be output (list
)
Examples:
print("foo", math.pi, print, {1,2,3}) -- In chat window: -- foo 3.1415926535898 function: 0x140e2a58 table: 0x2f772350 -- (actual addresses may vary)