From: Daniel N Date: 2007-11-21T12:26:49+09:00 Subject: Re: How to copy arrays? ------=_Part_27840_15456751.1195615612883 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Nov 21, 2007 2:20 PM, Martin Durai wrote: > I came accross another problem, how to copy arrays? Actually i need to > copy array just like in java. i will include the source code of java. > The same functionality i need in ruby. please any body help me with this > > System.arraycopy(elName, 0, arr, 0, elStackSize); > > I need a way to do samething in ruby. please any body help me with code > for arraycopy. > > thanks in advance > The java doesn't mean anything to me :) That make me very happy. @array.dup is the way to copy any object in ruby ------=_Part_27840_15456751.1195615612883--