Re: Goops: Setting Immutible Classes?

2017-10-06 Thread Christopher Allan Webber
Mark H Weaver writes: > Christopher Howard writes: > >> Hi, is the a way I could use goops such that I the classes are non- >> mutating, but have setters that simply return a new instance of the >> class (instead of modifying the original)? > > We provide such a

Re: Goops: Setting Immutible Classes?

2017-10-06 Thread Thompson, David
On Fri, Oct 6, 2017 at 2:00 AM, Christopher Howard wrote: > Hi, is the a way I could use goops such that I the classes are non- > mutating, but have setters that simply return a new instance of the > class (instead of modifying the original)? I'm not too familiar

Goops: Setting Immutible Classes?

2017-10-06 Thread Christopher Howard
Hi, is the a way I could use goops such that I the classes are non- mutating, but have setters that simply return a new instance of the class (instead of modifying the original)? I suppose I could simply use define-method to create setter methods which create a new instance of the object; but