[racket] Copying objects

From: Ryan Culpepper (ryan at cs.utah.edu)
Date: Thu Oct 20 00:56:20 EDT 2011

On 10/19/2011 08:39 PM, Eduardo Bellani wrote:
> Hello list.
>
> This should be obvious, but due probably to my ignorance I am finding
> more difficult than expected to find a function that copies an object.
>
> I did found struct-copy, but I don't think it deals with classical
> objects. Am I wrong?

There's no built-in way to copy objects. You'll have to add and 
implement a method that does it for the classes you want to be copyable.

Ryan


Posted on the users mailing list.