updateObjectTo
generic function returns an instance
of object
updated to the class definition of template
. It requires that the class of the returned object be the same as the
class of the template
argument, and that the object is valid.
Usually, updating proceeds by modifying slots in
template
with information from object
, and returning
template
. Use as
to coerce an object from one
type to another; updateObjectTo
might be useful to update a
virtual superclass. By default, updateObjectTo
has the following
behavior:
updateObjectTo(ANY-object,ANY-template)
as(ANY-object,class(ANY-template))
.
updateObjectTo(object, template, ..., verbose=FALSE)
message
to report this.updateObjectTo
returns a valid instance of template
.
updateObject
,
Versions-class