[plt-scheme] instantiating another instance of same class

From: Neil W. Van Dyke (neil at neilvandyke.org)
Date: Wed Apr 9 08:55:52 EDT 2003

Is there a way to do any of the following with the object system
(in decreasing order of generality)?

  1. Procedure that accepts an object instance and returns the object

  2. Way to get the most specific class of an instance from within a
     method of the instance.

  3. Way from within a method to make a new instance of the instance's
     class, with specified init fields.


Posted on the users mailing list.