macromedia.coldfusion.getting_started
[Top] [All Lists]

Re: When to use duplicate()

Subject: Re: When to use duplicate()
From: Adam Cameron
Date: Mon, 14 Apr 2008 18:01:55 +0100
Newsgroups: macromedia.coldfusion.getting_started

> The former is done to save memory and ColdFusion does this with complex 
> variable types such as arrays, structures and objects.  It does not do 
> this with simple variables such as numbers and strings.

Arrays, as far as I know, are copied by value.  Not that intuitive given
how CF seems to copy "all" other complesx types by reference.

-- 
Adam

<Prev in Thread] Current Thread [Next in Thread>