From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: New module system option :duplicates Date: Tue, 11 Mar 2003 00:38:21 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <878yvrxhp1.fsf@raven.i.defaultvalue.org> Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047339578 9103 80.91.224.249 (10 Mar 2003 23:39:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 23:39:38 +0000 (UTC) Cc: djurfeldt@nada.kth.se Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 11 00:39:37 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18sWro-0002MR-00 for ; Tue, 11 Mar 2003 00:39:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sWrd-0007ej-05 for guile-devel@m.gmane.org; Mon, 10 Mar 2003 18:39:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18sWrL-0007ba-00 for guile-devel@gnu.org; Mon, 10 Mar 2003 18:39:07 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18sWrJ-0007XA-00 for guile-devel@gnu.org; Mon, 10 Mar 2003 18:39:06 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sWqV-0006ow-00 for guile-devel@gnu.org; Mon, 10 Mar 2003 18:38:15 -0500 Original-Received: from barbara.blakulla.net ([213.212.21.238] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 18sWqT-0001Wo-00; Tue, 11 Mar 2003 00:38:13 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18sWqb-00046J-00; Tue, 11 Mar 2003 00:38:21 +0100 Original-To: Rob Browning In-Reply-To: <878yvrxhp1.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Fri, 07 Mar 2003 10:30:34 -0600") User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Original-cc: guile-devel@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2060 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2060 Rob Browning writes: > Interesting. Though I had thought that we were already heading in the > direction of being less tolerant of duplicate bindings as a default. Yeah. Default now. > Also, doesn't ttn already have an augmented module system syntax for > renaming, etc.? If so, and if people are using it much, then it might > be worth considering that syntax as well, and I seem to recall that > Marius may have been planning something on this front too... Marius has implemented renaming. I just augmented it so you can say: :use-module ((foo) :prefix foo:) I'll document that in NEWS tomorrow. >> This implies that x in (math 2D-vectors) can see the methods of x in >> (my-module) and vice versa, while x in (math 2D-vectors) doesn't see >> the methods of x in (math 3D-vectors), thus preserving modularity. > > Why would x in (math 2D-vectors) be able to see the methods of x in > (my-module)? Isn't that a violation of modularity? The reverse I > understand. Think about dynamic method dispatch. A `paint' method in a generic graphics package need to see subclasses provided by modules importing the generic package. M _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel