"RokuJoel" wrote:
http://forums.roku.com/viewtopic.php?f=34&t=36995&p=240814&hilit=copy+array#p240811
Thanks, that's a valiant effort at deepcopy on kbenson's side. Serialize/deserialize idea is cute, too. For the record, both will get in trouble with cyclic structures though (infinite loop). Deep-copy is a can of worms so nevermind that, let's talk shallow copy.
Is there no better way known to Roku of doing roAssociativeArray copy than the "manu-matic" way i show above?
(no intent to criticize here, just would like yes/no determination)
PS. why may one need that you ask? well since objects are emulated with roAssocArrays but there are no classes/constructors, one has to create objects by cloning prototype objects... a-la javascript