API:print

__NOTOC__
Function print as described below is in DevUtils by ckknight; the ROM print appears to exist but to do nothing!
Receives any number of arguments, and prints their values to stdout, using the tostring function to convert them to strings. print is not intended for formatted output, but only as a quick way to show a value, typically for debugging.
print (···)
== Parameters ==
=== Arguments ===
:;...
::explist - Receives any number of arguments, of any type.
=== Returns ===
:None
== Example ==
The following results in an output of "true, false, 6, nil, nil, Hello ROM!, 0.035294117647059, table: 1D750598, function: 1084B478"
print(true, 1==2, #"hello!", nil, ..., "Hello ROM!", BS_GetHairColor(), {"a","b","c"}, print)
The following results in an output of "0.035294117647059, 0.10980392156863, 0.33725490196078"
print(BS_GetHairColor())
== Notes ==
* http://www.lua.org/manual/5.1/manual.html#pdf-print
* For formatted output, use string.format.
* Typically people use DEFAULT_CHAT_FRAME:AddMessage to print messages to the chat window when not debugging.
* pprint from the Addon Development Tool DevUtils extends print to include arrays.
== Related Functions ==
* string.format
* Widget_API_AddMessage
Category:Functions