changeClass
changeClass(g_instg_className[g_initArgs] ) =>g_updatedInst
Description
Changes the class of the given instance (g_inst) to the specified class (g_className).
The function updateInstanceForDifferentClass() is called on the modified instance to allow applications to deal with new or lost slots.
Arguments
|
Additional arguments to be passed to the |
Value Returned
Examples
(defclass A () ())
(defclass B (A) ((slot @initarg s)))
x = (makeInstance 'A)
(changeClass x 'B ?s 1)
(classOf x)
=> class:B
Related Topics
Return to top