Product Documentation
Cadence SKILL++ Object System Reference
Product Version IC23.1, June 2023

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

g_object

An instance of a class.

Value Returned

g_result

A string or symbol representing information about g_object.

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

Classes and Instances


Return to top
 ⠀
X