unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Goops: Setting Immutible Classes?
@ 2017-10-06  6:00 Christopher Howard
  2017-10-06  6:24 ` Mark H Weaver
  2017-10-06 12:55 ` Thompson, David
  0 siblings, 2 replies; 4+ messages in thread
From: Christopher Howard @ 2017-10-06  6:00 UTC (permalink / raw)
  To: Guile User Mailing List

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

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 that would get rather
complicated, wouldn't it, if the object had superclasses? So I need
some kind of shallow copy mechanism for the whole object, or a chained
copy mechanism...?

-- 
https://www.debian.org/

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-06 15:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06  6:00 Goops: Setting Immutible Classes? Christopher Howard
2017-10-06  6:24 ` Mark H Weaver
2017-10-06 15:46   ` Christopher Allan Webber
2017-10-06 12:55 ` Thompson, David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).