REBOL Document

Dump-obj - Function Summary


Returns a block of information about an object.


dump-obj obj


obj - The obj argument. (must be: object)


/match - Include only those that match a string or datatype

pat - The pat argument.


This function provides an easy way to view the contents of an object. It is an alternative to MOLD and PROBE which may display too much information for deeply structured objects.

    print dump-obj system/error
       throw           object!   [code type no-loop no-function no-catc
       note            object!   [code type no-load exited] 
       syntax          object!   [code type invalid missing header] 
       script          object!   [code type no-value need-value no-arg 
expect-arg e... 
       math            object!   [code type zero-divide overflow positi
       access          object!   [code type cannot-open not-open alread
y-open alrea... 
       command         object!   [code type fmt-too-short fmt-no-struct
-size fmt-no... 
       resv700         none!     none 
       user            object!   [code type message] 
       internal        object!   [code type bad-path not-here stack-ove
rflow global...


? - Prints information about words and values.
?? - Prints a variable name followed by its molded value. (for debugging)
help - Prints information about words and values.

<Back | Index | Next>

Copyright 2004 REBOL Technologies