NAME

putvar - prints the UTF-8 representation of values formatted with type and structure information

SYNOPSIS

io::putvar(val, ...)
io::putvar(file, val, ...)
file.putvar(val, ...)

DESCRIPTION

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.

RETURN VALUE

None

ERRORS

AccessCheck for an attempt to access a closed file
IoCheck for other miscellaneous I/O errors (see ferror)

EXAMPLES

        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
    }

SEE ALSO

getvar
new File