Method DataObject():merge() Foundation

Merges exported member variables from another object into this instance.

Syntax
:merge( <oObject> [, <cMessagePrefix>] ) -> self
Return

This method returns the DataObject (self).

Description

The method :merge() adds all member variables which are exported by <oObject> to the DataObject instance, along with their respective values. If a member variable already exists, its value is not changed. The method :merge() only adds members which are unknown to the DataObject instance.

When using the optional parameter <cMessagePrefix>, the message names associated with the added members is prefixed with the given string.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.