Jim Freeze wrote:
> I want to copy an object that contains an array.
> I want the new object to have its own array, not
> a pointer to the original array. How is this done?
> I have tried direct asignment, .dup and .clone,
> but none work.


Note that your code does _not_ dup nor clone the @s array, which
naturally should leave you with a shallow copy as default. See
http://www.rubycentral.com/book/ref_c_object.html#clone and realise that
the s you're dup'ing in func isn't the Array, but your Stmt object.

I believe you need to implement dup or clone yourself, to ensure a deep
copy. 

-- 
<[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]>
  )____(stud.techn.;ind..data)||(softwareDeveloper.at(Trustix))_( 
 /"Opinions expressed are mine and not those of my Employer,      "\
( "the University, my girlfriend, stray cats, banana fruitflies,  " )
 \"nor the frontal lobe of my left cerebral hemisphere.           "/