--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/2UXKYCzmnpQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/6761290b-f585-436a-9169-8829786b2ff9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jason,
It’s probably an issue with concurrent modifications to the reference object. Lucee is strict about array references. If you use duplicate
on the source
argument the loop completes just fine in Lucee:
<cfscript>
times = 10;
function recurse( source ) {
var out = duplicate(source);
if(times > 0) {
times--;
arrayAppend(out, recurse(out));
}
return out;
};
source = [1];
start = getTickCount();
result = recurse(source);
end = getTickCount();
writeDump(var=result);
writeDump("#end-start# ms");
abort;
</cfscript>
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/2UXKYCzmnpQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/etPan.57a3c349.200b49c9.5101%40silowebworks.com.