printself
printself(g_object) =>g_result
Description
A generic function which is called to print a stdObject instance. You can define your own methods to this generic function for specializing on a class to alter the default print representation of an instance of that class.
Arguments
Value Returned
Examples
defmethod( printself ((obj myClass))
sprintf(nil "#{instance of myClass:%L}" obj) ; returns a string
)
i = makeInstance('myClass)
=> #{instance of myClass:stdobj@0x83ba018}
; prints all instances of myClass
Related Topics
Return to top