On Sat, Jul 21, 2001 at 11:20:22PM +0900, ts wrote:
> >>>>> "M" == Michael Neumann <neumann / s-direktnet.de> writes:
> 
>    class Transient
>       def transient
>          obj = self.dup
>          trans = self.class.class_eval "@transient"
>          trans = [trans] unless trans.kind_of? Array
>          trans.each do |var| 
>             obj.instance_eval %q|remove_instance_variable var|
>          end
>          obj
>       end
>    end

This works fine, but has one major drawback, that you have to
call it explicitly. 
DRb for example would not take notice of it.

Regards, 

  Michael



-- 
Michael Neumann  ***  eMail uu9r / rz.uni-karlsruhe.de