Project

General

Profile

« Previous | Next » 

Revision 8e33ab84

Added by skyjake over 10 years ago

Fixed|libcore|Scripting: Duplicating values with no ownership

Value::duplicateAsReference() was added so that values being duplicated
in expression evaluation do not cause inadvertently duplicated
Record instances. It defaults to Value::duplicate().

RecordValue::duplicate() will replicate the ownership relationship
in the duplicate copy, including a full duplicate of the owned record.
However, RecordValue::duplicateAsReference() will always reference
the original value's record.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences