From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#11198: prefab structs in guile Date: Fri, 06 Jul 2012 00:03:09 +0200 Message-ID: <87ipe13lya.fsf__23701.3453654528$1341525860$gmane$org@pobox.com> References: <877gui7i3y.fsf@pobox.com> <87ipe2dizn.fsf@gnu.org> <878vex534f.fsf@pobox.com> <874npldga9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341525860 28989 80.91.229.3 (5 Jul 2012 22:04:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2012 22:04:20 +0000 (UTC) Cc: 11198@debbugs.gnu.org, guile-devel To: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jul 06 00:04:19 2012 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Smu9m-0004c0-PW for guile-bugs@m.gmane.org; Fri, 06 Jul 2012 00:04:15 +0200 Original-Received: from localhost ([::1]:45328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smu9l-0006Cs-R6 for guile-bugs@m.gmane.org; Thu, 05 Jul 2012 18:04:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smu9i-0006Cc-IA for bug-guile@gnu.org; Thu, 05 Jul 2012 18:04:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Smu9g-00058H-Ko for bug-guile@gnu.org; Thu, 05 Jul 2012 18:04:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Smu9g-000583-F5 for bug-guile@gnu.org; Thu, 05 Jul 2012 18:04:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SmuEQ-0007Hw-FB for bug-guile@gnu.org; Thu, 05 Jul 2012 18:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 05 Jul 2012 22:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11198 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11198-submit@debbugs.gnu.org id=B11198.134152609127961 (code B ref 11198); Thu, 05 Jul 2012 22:09:02 +0000 Original-Received: (at 11198) by debbugs.gnu.org; 5 Jul 2012 22:08:11 +0000 Original-Received: from localhost ([127.0.0.1]:51107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmuDa-0007Gv-Oc for submit@debbugs.gnu.org; Thu, 05 Jul 2012 18:08:11 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:51617 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmuDY-0007Gn-1c for 11198@debbugs.gnu.org; Thu, 05 Jul 2012 18:08:09 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTP id AB040BA4E; Thu, 5 Jul 2012 18:03:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=39A5t+9Yux0R wAWj2svhC9dVJ48=; b=HQHbMh46Ag0PBJJ3d55czITUvFaoAahTWZGcbpysvhoq WX7JBJSxmiSLhDUpvCl2c0WW+YPZT2bNyZ9cUwTiI5/FQhirDahH/691l1tuc9++ 0mBKWD8l/vcoPnoxy/BHwCNNo596zbQ20bRJY0WuwevC2x1RHrbn/uTCGZvC5qk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=o0pHcj Mtdfg+SzilckxxFI/kjfwC72Li4no0rIuPXy+KEB80bu9AIQc/lz5+7uhgdiJrep U+qMNNwO+CygDXBE1H61XPMMQJtbg+wiXj/7Em0evGaW/mxko1JyTtJUVNJ8Ktlq WkxR8A8tQrpxtdnLkyd2HXfJ7Eb2dRCIGMNlY= Original-Received: from b-pb-sasl-sd. (unknown [127.0.0.1]) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTP id A3595BA4D; Thu, 5 Jul 2012 18:03:12 -0400 (EDT) Original-Received: from badger (unknown [89.131.176.233]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by b-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 0BC21BA4C; Thu, 5 Jul 2012 18:03:11 -0400 (EDT) In-Reply-To: <874npldga9.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 05 Jul 2012 23:55:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-Pobox-Relay-ID: 36843938-C6ED-11E1-AFA4-FA6787E41631-02397024!b-pb-sasl-sd.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6397 Archived-At: On Thu 05 Jul 2012 23:55, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > So I=E2=80=99d be in the =E2=80=98define-serializable-struct=E2=80=99 cam= p, so to speak. That's a valid position to have in general. I can also imagine cases in which you would choose other things. It's a spectrum. > Prefabs raise an number of interesting issues. For instance, what=E2=80= =99s the > meaning of #s(sprout bean #f 17) in a module where =E2=80=98sprout=E2=80= =99 is unbound? Prefab structs are not modular. It is the same as in a module where `sprout' is bound. Reading #s(sprout bean #f 17) may create an RTD if needed, but it does not create any bindings. > types are compared by name. As the documentation clearly indicates :), prefab structs are indeed compared by name, though in a combination with other characteristics (number of fields, and more characteristics for racket). Andy --=20 http://wingolog.org/