putvar - prints the UTF-8 representation of values formatted with type and structure information
io::putvar(val,
...)
io::putvar(file, val,
...)
file.putvar(val,
...)
Prints out a UTF-8 representation of each value on the given
file. If the file is not specified, prints to
io::Output. The values are formatted with type
and structure information so that they may be read again retaining
that information. Type information includes integral and floating
point type suffixes, and character and string quotes. Structure
information includes syntax for arrays, lists, packed arrays, and
objects.
None
AccessCheck for an attempt to access a closed
file
IoCheck for other
miscellaneous I/O errors (see ferror)
io::putvar([[1,2],[3,4]])
[
[1,2],
[3,4]
]
io::putvar(L"Hello!\n")
L"Hello!\n"
class foo {public var x, y;}
foo bar {x = 3}
io::putvar(bar)
foo bar {
x = 3
y = nil
}