From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: where to put generics? Date: Sat, 12 Jul 2003 11:30:36 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20030712103036.GB4329@lark> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1058190338 31676 80.91.224.249 (14 Jul 2003 13:45:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2003 13:45:38 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jul 14 15:45:36 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 19c3ak-0007yl-00 for ; Mon, 14 Jul 2003 15:42:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19c3aU-0002l0-1k for guile-devel@m.gmane.org; Mon, 14 Jul 2003 09:41:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19c3Qt-00079X-9V for guile-devel@gnu.org; Mon, 14 Jul 2003 09:31:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19c3Q5-0006Yp-4X for guile-devel@gnu.org; Mon, 14 Jul 2003 09:31:09 -0400 Original-Received: from rdu162-226-006.nc.rr.com ([24.162.226.6] helo=fridge) by monty-python.gnu.org with esmtp (Exim 4.20) id 19c3Mz-0005HA-OC for guile-devel@gnu.org; Mon, 14 Jul 2003 09:27:57 -0400 Original-Received: from lark (mantis.schoolnet.na [::ffff:196.44.140.238]) (AUTH: LOGIN wingo) by fridge with esmtp; Mon, 14 Jul 2003 09:27:52 -0400 Original-Received: from wingo by lark with local (Exim 3.36 #1 (Debian)) id 19bHeG-0003Pw-00 for ; Sat, 12 Jul 2003 11:30:36 +0100 Original-To: guile-devel@gnu.org Mail-Followup-To: guile-devel@gnu.org Content-Disposition: inline X-Operating-System: Linux lark 2.4.20-1-686 User-Agent: Mutt/1.5.4i X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.lisp.guile.devel:2624 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2624 Hi again, I figured while I was emailing I could get something else off my chest -- what is the best way for two modules that do not want to know about each other to add methods to the same generic? The problem there is that such a generic might not exist in the 'stock' top-level environment. The generic would need to be created and then exported, but only one time -- if both modules export generics, the generics from recent modules will replace those from previous modules. So, if the generics are only exported once, where should they be put? I'm hacking around this for the moment by putting them in the root module, but that's not exactly an elegant solution. What's the thought on this? Has anyone else had to deal with these issues in the past? Thanks again, wingo. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel