From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add ".guile.sls" and ".sls" to the default %load-extensions Date: Sun, 04 Nov 2012 23:27:28 +0100 Message-ID: <87k3u1knqn.fsf@delenn.lan> References: <87fw4qgi1i.fsf@tines.lan> <87k3u16rak.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352068191 32037 80.91.229.3 (4 Nov 2012 22:29:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Nov 2012 22:29:51 +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 Sun Nov 04 23:30:00 2012 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 1TV8hc-0003ui-4a for guile-devel@m.gmane.org; Sun, 04 Nov 2012 23:30:00 +0100 Original-Received: from localhost ([::1]:46810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV8hS-0005KN-S4 for guile-devel@m.gmane.org; Sun, 04 Nov 2012 17:29:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TV8hM-0005J6-Nr for guile-devel@gnu.org; Sun, 04 Nov 2012 17:29:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TV8hL-0008Uq-Kd for guile-devel@gnu.org; Sun, 04 Nov 2012 17:29:44 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:57473) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TV8hL-0008UP-BT for guile-devel@gnu.org; Sun, 04 Nov 2012 17:29:43 -0500 Original-Received: (qmail invoked by alias); 04 Nov 2012 22:29:41 -0000 Original-Received: from 91-119-183-25.dynamic.xdsl-line.inode.at (EHLO cubox.home.rotty.xx.vu) [91.119.183.25] by mail.gmx.net (mp016) with SMTP; 04 Nov 2012 23:29:41 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX1/I4C4w+KvIXNtnFedEBYlwmWJ1WbcBautD7LFRvx /dPHODAvsSdVt8 Original-Received: from delenn.lan (unknown [192.168.2.11]) by cubox.home.rotty.xx.vu (Postfix) with ESMTP id 12771160099; Sun, 4 Nov 2012 23:27:29 +0100 (CET) Original-Received: by delenn.lan (Postfix, from userid 1000) id D05EE320141; Sun, 4 Nov 2012 23:27:28 +0100 (CET) In-Reply-To: <87k3u16rak.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sun, 04 Nov 2012 21:34:27 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.22 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:15084 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi, > > Mark H Weaver skribis: > >> Any objections to adding ".guile.sls" and ".sls" to Guile's default >> %load-extensions? > > OK for .sls, but why .guile.sls? > This is used for compatibility libraries, for instance: % ls spells/filesys/ compat.guile.sls compat.larceny.sls compat.mzscheme.sls compat.ikarus.sls compat.mosh.sls compat.ypsilon.sls Only guile will have .guile.sls in its %load-extensions, so it will find the correct library, in this case corresponding to the library name `(spells filesys compat)'. Other R6RS implementations, if the adhere to this convention, will only consider "their" specific file, as they'd only look for spells/filesys/compat.sls and spells/filesys/compat..sls. If there's a portable implementation of that library, it will be under spells/filesys/compat.sls, and be used (only) if there's no implementation-specific file. So it's important that the ".guile.sls" extension is considered *before* ".sls". For performance reasons, it *might* make sense to not enable this behavior by default, but provide a command-line switch; however, enabling this behavior is *already* possible using command-line switches ("-x .guile.sls -x .sls"), so I don't know... Regards, Rotty --=20 Andreas Rottmann --