Array is referenced by default

Description

Hi,
found that in Lucee Arrays works like a pointers same as objects. ACF don't do that for Arrays, but it can be done by setting variable: this.passArrayByReference=true in Application.

Can we set to duplicate array by default, or add same variable to disable or enable Array-reference.

1 2 3 4 5 <cfset combintaion = ["John","Jason","James"] /> <cfset combine = combintaion /> <cfset arrayAppend(combine, "TEST") /> <cfdump var="#combintaion#"> <cfdump var="#combine#">

changing combine variable → lead to changing combination variable, that in ACF do not happen.

 

Status

Assignee

Unassigned

Reporter

Guardian

Labels

None

Affects versions

5.3.3.14

Priority

Critical
Configure