Sometimes you want to create an exact copy of an object.
Simply assigning a component to a variable does not create a copy of it. Rather, it creates an additional reference to the same object. If any property of the original object changes, the new reference will also show these changes, since it is still pointing to the same object.
// Create an instance for each
// participant in the role
for each person in activity.role.participants do
copy = clone(this)
copy.participant.next = person
end