From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#24955: defining a record type does not also define a GOOPS class in Guile 2.1 Date: Mon, 09 Jan 2017 22:43:09 +0100 Message-ID: <87tw97ap02.fsf@pobox.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483998256 9780 195.159.176.226 (9 Jan 2017 21:44:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 9 Jan 2017 21:44:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 24955-done@debbugs.gnu.org To: "Thompson\, David" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jan 09 22:44:12 2017 Return-path: Envelope-to: guile-bugs@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 1cQhjc-0001ZJ-DP for guile-bugs@m.gmane.org; Mon, 09 Jan 2017 22:44:08 +0100 Original-Received: from localhost ([::1]:43276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQhjg-0003zc-M3 for guile-bugs@m.gmane.org; Mon, 09 Jan 2017 16:44:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQhja-0003yV-M3 for bug-guile@gnu.org; Mon, 09 Jan 2017 16:44:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQhjW-0002qf-Py for bug-guile@gnu.org; Mon, 09 Jan 2017 16:44:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:32771) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQhjW-0002qT-Je for bug-guile@gnu.org; Mon, 09 Jan 2017 16:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cQhjW-0007Kf-DS for bug-guile@gnu.org; Mon, 09 Jan 2017 16:44:02 -0500 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Mon, 09 Jan 2017 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24955 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 24955@debbugs.gnu.org, wingo@pobox.com, dthompson2@worcester.edu Original-Received: via spool by 24955-done@debbugs.gnu.org id=D24955.148399820228124 (code D ref 24955); Mon, 09 Jan 2017 21:44:02 +0000 Original-Received: (at 24955-done) by debbugs.gnu.org; 9 Jan 2017 21:43:22 +0000 Original-Received: from localhost ([127.0.0.1]:48168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQhis-0007JX-An for submit@debbugs.gnu.org; Mon, 09 Jan 2017 16:43:22 -0500 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:61356 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQhiq-0007JQ-Sd for 24955-done@debbugs.gnu.org; Mon, 09 Jan 2017 16:43:21 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 7D95F57BA0; Mon, 9 Jan 2017 16:43:18 -0500 (EST) 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; s=sasl; bh=whuzrhysBFuRZRtcrHOVfogeB0k=; b=wmBhoD MHl7gr90M5ULyvAc58YgdAl1d8cjYq9A9sg5lgzznFU6p+GJuEB3YrcU+/vbn4xd k0bmt9/jkkAMqxrLo04txninxjCVhZDWQisuqsd8jn2H9gFropavTVTJkIzEeULl BitAqKrvX/PjTKM5Myk1q6+7aa0Xf5PJgYZAk= 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; q=dns; s=sasl; b=yBJJUlZhkr8oA9meK7p5F1+8OieAfCr0 FCjdhhGf5Q5fombHlBT1s0yc8G6cw9rvVT0IXqo8kKM9JQJRMO6CHsGGvuv3ibio 31B2lhxb09a3g45zj0qmWdBEMfQsaVaoL+VTAJWY3yyQmZokamtXt8IqhNR5kfxk IwhLelLT+ds= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 74AA557B9F; Mon, 9 Jan 2017 16:43:18 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 9EF7757B9E; Mon, 9 Jan 2017 16:43:17 -0500 (EST) In-Reply-To: (David Thompson's message of "Wed, 16 Nov 2016 10:26:05 -0500") X-Pobox-Relay-ID: A1CB2FCC-D6B4-11E6-8621-6141F2301B6D-02397024!pb-sasl2.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:8504 Archived-At: On Wed 16 Nov 2016 16:26, "Thompson, David" writes: > Hello, > > It used to be, in Guile 2.0, that defining a record type would > also, in an unhygienic manner, define the GOOPS class <> for use > with generic methods. However, in Guile 2.1, this does not happen. > Example: > > (use-modules (srfi srfi-9) > (oop goops)) > > (define-record-type > (make-foo bar) > foo? > (bar foo-bar)) > > <> ;; Unbound variable: <> > > Was this an intentional breaking change? I do find it weird that a > variable binding is magically defined, but I still would like some way > to access the class wrapper for a record type without doing something > hacky like: > > (define <> (class-of (make-foo 'bar))) See NEWS: ** Defining a SMOB or port type no longer mucks exports of `(oop goops)' It used to be that defining a SMOB or port type added an export to GOOPS, for the wrapper class of the smob type. This violated modularity, though, so we have removed this behavior. I think in the future should be classy already as a kind of primitive class -- (class-of (make-foo ...)) should eq? . That doesn't happen now yet though. Closing as not a bug unless you have really strong opinions here. A