From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Unintentional conflict in define-immutable-type? Date: Wed, 18 Nov 2015 22:25:15 -0600 Message-ID: <87610yfwes.fsf@trouble.defaultvalue.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1447907199 32665 80.91.229.3 (19 Nov 2015 04:26:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2015 04:26:39 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 19 05:26:32 2015 Return-path: Envelope-to: guile-devel@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 1ZzGmr-0003M0-Vf for guile-devel@m.gmane.org; Thu, 19 Nov 2015 05:25:34 +0100 Original-Received: from localhost ([::1]:39488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzGmr-0007Ho-8m for guile-devel@m.gmane.org; Wed, 18 Nov 2015 23:25:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzGml-0007Hc-Ua for guile-devel@gnu.org; Wed, 18 Nov 2015 23:25:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZzGmh-0005r7-C4 for guile-devel@gnu.org; Wed, 18 Nov 2015 23:25:27 -0500 Original-Received: from defaultvalue.org ([70.85.129.156]:52757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZzGmh-0005qs-6T for guile-devel@gnu.org; Wed, 18 Nov 2015 23:25:23 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 5DF9420236 for ; Wed, 18 Nov 2015 22:25:21 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 6111E14E062; Wed, 18 Nov 2015 22:25:15 -0600 (CST) User-Agent: Notmuch/0.20.1 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 70.85.129.156 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:18042 Archived-At: This crashes in 2.0: (use-modules (srfi srfi-9 gnu)) (define-immutable-record-type foo (foo x) foo? (x x)) (foo 1) like this: foo.scm:10:9: In procedure #: foo.scm:10:9: In procedure make-struct: Wrong type argument in position 1: # Changing the type name to (or even xfoo) fixes the conflict, even though "define-immutable-type foo" actually creates a binding for , not foo. I thought there was a chance this might be unintentional. -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4