From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: %module-public-interface Date: Wed, 31 Mar 2010 00:20:39 +0200 Message-ID: References: <87zl1pv89p.fsf@gnu.org> <87d3ylv5oe.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270024420 20264 80.91.229.12 (31 Mar 2010 08:33:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2010 08:33:40 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 31 10:33:36 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NwtMm-0006mr-9x for guile-devel@m.gmane.org; Wed, 31 Mar 2010 10:33:36 +0200 Original-Received: from localhost ([127.0.0.1]:50106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwtMl-00083A-Nx for guile-devel@m.gmane.org; Wed, 31 Mar 2010 04:33:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwt2w-0000e6-C4 for guile-devel@gnu.org; Wed, 31 Mar 2010 04:13:06 -0400 Original-Received: from [140.186.70.92] (port=40895 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwt2q-0000bf-5j for guile-devel@gnu.org; Wed, 31 Mar 2010 04:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwt2n-0007UP-RK for guile-devel@gnu.org; Wed, 31 Mar 2010 04:12:59 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:57483 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwt2n-0007UF-Nr; Wed, 31 Mar 2010 04:12:57 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C7A57A6BCA; Wed, 31 Mar 2010 04:12:56 -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=iYypv7HMCWOZ szuYU0nK8EVC800=; b=kJ01KGwhmmGD8rLZFcOewpvSbCvq3TMMBX8jRGmdNcUt D+k0DvE5mSihfSRIFlQUqA0/yN9sghEf2bHVNOQirT8g7qU9kvrYH5zFyj5zAB1n E11/3H8joP3jXvbNNk8hEx3RBjhBFNxoWvCTtPAJL8+0QdL11ZuMju8n4bkbGHA= 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=OiBega tK2QCW9V87kB0vn2u0FAk4dWpq1GDLGaWWwPvVq+T6CfNeBjun2irGaGH00Xa/Vs mmCRYTPEjmnQUTapscUGelzRN/bv7Bb5CfnL0MnVvyTI5gLAGTbcuCtb6wK6Jt0C fybU+5xUTnaUFkA5yuOUSgcBIJsTxzucU/jnQ= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id AF872A6BC9; Wed, 31 Mar 2010 04:12:55 -0400 (EDT) Original-Received: from unquote (unknown [81.39.160.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 1355BA6BC7; Wed, 31 Mar 2010 04:12:53 -0400 (EDT) In-Reply-To: <87d3ylv5oe.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 30 Mar 2010 23:52:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 35EFEBC0-3C9D-11DF-8D5E-D033EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10130 Archived-At: On Tue 30 Mar 2010 23:52, ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> And we could add a =E2=80=98public-interface=E2=80=99 slot to =E2=80=98= module-type=E2=80=99 and have >>> =E2=80=98module-public-interface=E2=80=99 and =E2=80=98set-module-publi= c-interface!=E2=80=99 refer to >>> it; for backward compatibility we=E2=80=99d also initialize the >>> =E2=80=98%module-public-interface=E2=80=99 binding. How does it sound? > > Actually the trick wouldn=E2=80=99t work in cases where the > =E2=80=98%module-public-interface=E2=80=99 binding is mutated, as with Li= lypond. > > Given this and the above examples, I=E2=80=99d suggest dropping that bind= ing > completely and sending patches to the Lilypond/TeXmacs people. Hm. I guess you're right. In the case with deprecated foo enabled, we can add a %module-public-interface definition in the root module, which maps to a module with a binder procedure that will raise an error. That way we can catch apps that we don't know about. Andy --=20 http://wingolog.org/