From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Christopher Howard Newsgroups: gmane.lisp.guile.user Subject: Goops: Setting Immutible Classes? Date: Thu, 05 Oct 2017 22:00:54 -0800 Message-ID: <1507269654.28034.8.camel@qlfiles.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-qVvpEPK+AVJopUlAot07" X-Trace: blaine.gmane.org 1507269697 25906 195.159.176.226 (6 Oct 2017 06:01:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2017 06:01:37 +0000 (UTC) To: Guile User Mailing List Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Oct 06 08:01:32 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e0LhP-0005Qj-Ve for guile-user@m.gmane.org; Fri, 06 Oct 2017 08:01:28 +0200 Original-Received: from localhost ([::1]:43135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0LhV-00029X-Cg for guile-user@m.gmane.org; Fri, 06 Oct 2017 02:01:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0Lh8-00029L-EZ for guile-user@gnu.org; Fri, 06 Oct 2017 02:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0Lh2-0002XB-Qt for guile-user@gnu.org; Fri, 06 Oct 2017 02:01:10 -0400 Original-Received: from mx.kolabnow.com ([95.128.36.42]:64650) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e0Lh2-0002UV-Id for guile-user@gnu.org; Fri, 06 Oct 2017 02:01:04 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id EC15A381 for ; Fri, 6 Oct 2017 08:00:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= mime-version:content-type:content-type:date:date:from:from :subject:subject:message-id:received:received:received; s= dkim20160331; t=1507269659; x=1507269681; bh=IP9EHkcdB/n859bVfX/ UHMR9GjuV6FEmBRS/4EaymiU=; b=jzBVZEUMpLdtQsNpgcT+HwLPwhLsdGpxQF6 GxYBZf/Y/3TpBHiEIJ4F3RR1Q6BIFZUvmlWY9JUU1KFsr2Ds9dHWE9IpNJ5+bJfl krqjWuzQbMJhEnhOKmuHk+5qP35nzd1mo/Jh46Mv/I7tJfQ1c2XDBOc2XkouPVZu l2Pc5wjjDB1/dAdAKqb9/fJmfsWLpLF9VJ+NtgbaialZCK7LpZwuZcFEKLOdcz6K aX9Q9sxM/iEPal6w3snWPXfbQzvlmT9Rq0xfqO/n/pZkYiO+Mj8b+6zENMF+rck7 xW8Vf9begCFMcgdFmwVf1z+aXgCbr5vR87CSG8lOhCCDnsMTsuoMBY3XMgqyzGrl 1J46H/+ryn1hrvv48P/C8BR1in/yL8Iz0xGZxZUE1hrhwiUqZzOh6clAXWAqUAhj x2GwmS0yyin41uHi05vVb2fxs1xVAxFflVYQjHHzxRPnfIRECsHCS1PXxS2yPPtv 7K0fO2KZ+PpYKqIaJa/BLxnrbQ65MR9LMYIOPtV4cceqSukSwvaeRSDJ683Ar9Vt 5dVFzUiDamOyLDx3sVzqaYSlYsWNZ+0ioImULiS8N5oBna X-Virus-Scanned: amavisd-new at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bOvYbbZijclU for ; Fri, 6 Oct 2017 08:00:59 +0200 (CEST) Original-Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id B12CD24E for ; Fri, 6 Oct 2017 08:00:59 +0200 (CEST) Original-Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx002.mykolab.com (Postfix) with ESMTPS id A24422378 for ; Fri, 6 Oct 2017 08:00:59 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 95.128.36.42 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:14189 Archived-At: --=-qVvpEPK+AVJopUlAot07 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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...? --=20 https://www.debian.org/ --=-qVvpEPK+AVJopUlAot07 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEE3cRyrLOhI3rPcNVUee7NbCP9XMUFAlnXHBcACgkQee7NbCP9 XMVKdQf9H4rcSw0m7W8RBzJW+TTND2IDkJeKUUm4UQyCn6O434IkZnUKih7rA0dS Qm9tfrtcLT8jvH5BXFpNMyOhG09j+wdwjMIZ0/PoKux1QVR+KQjKXmwmJ3Gr8rEm mbzY6zgPvvXRWgEMDh/gNFHyr2mGLmj0y/E9gm8iXsL4d7Qgur3oMcUH9XGQ0PJC uJkfpAxFgmiyImA8liRuowKmFcKEmTc4eJJEqMCix0RdWJQLB4SG5BE7Js/bLum0 5UTSQuWhHLWRU5+LmN2lmg8PfLrlpvITZHkmNI7n/uHTb423mwz3PpZqeX3qPpv2 YJWD2XmH2qwW+Ter2gAj6ZvJv/IXRg== =2HK/ -----END PGP SIGNATURE----- --=-qVvpEPK+AVJopUlAot07--