From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Compall Newsgroups: gmane.lisp.guile.devel Subject: Re: srfi-18 requirements Date: Mon, 15 Oct 2007 17:35:12 -0500 Message-ID: <4713EB20.3080608@member.fsf.org> References: <2bc5f8210710101854m1254160ei451026182b87e767@mail.gmail.com> <87lka8pvv3.fsf@laas.fr> <2bc5f8210710120831q5c90dcfes930595fa3eb16a77@mail.gmail.com> <2bc5f8210710151526t6345200ao997988c1877e8cce@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1192490950 6693 80.91.229.12 (15 Oct 2007 23:29:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2007 23:29:10 +0000 (UTC) Cc: guile-devel@gnu.org To: Julian Graham Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Oct 16 01:28:59 2007 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.50) id 1IhYX3-0004gQ-5F for guile-devel@m.gmane.org; Tue, 16 Oct 2007 00:35:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhYWw-0005nJ-8z for guile-devel@m.gmane.org; Mon, 15 Oct 2007 18:35:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhYWr-0005mr-9f for guile-devel@gnu.org; Mon, 15 Oct 2007 18:35:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhYWq-0005mV-Ll for guile-devel@gnu.org; Mon, 15 Oct 2007 18:35:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhYWq-0005mJ-8U for guile-devel@gnu.org; Mon, 15 Oct 2007 18:35:16 -0400 Original-Received: from mxsf00.insightbb.com ([74.128.0.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhYWp-0004ej-S2 for guile-devel@gnu.org; Mon, 15 Oct 2007 18:35:16 -0400 X-IronPort-AV: E=Sophos;i="4.21,279,1188792000"; d="scan'208";a="75112051" Original-Received: from unknown (HELO asav00.insightbb.com) ([172.31.249.124]) by mxsf00.insightbb.com with ESMTP; 15 Oct 2007 18:35:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAPmHE0dKiZK7/2dsb2JhbACBWg X-IronPort-AV: E=Sophos;i="4.21,279,1188792000"; d="scan'208";a="125970945" Original-Received: from 74-137-146-187.dhcp.insightbb.com (HELO Epsilon-III.local) ([74.137.146.187]) by asav00.insightbb.com with ESMTP; 15 Oct 2007 18:35:14 -0400 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 In-Reply-To: <2bc5f8210710151526t6345200ao997988c1877e8cce@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:6839 Archived-At: Julian Graham wrote: > (SRFI-18 make-condition-variable takes an optional argument that you > can use to "name" the condition var). To work around this, I was > going to create backup bindings of the original primitives and then > refer to them in my scheme reimplementations, a la: > > (define guile:make-condition-variable make-condition-variable) > (define (make-condition-variable . foo) > (let ((m (guile:make-condition-variable))) (do-something))) > > ...and even if the user noticed the slightly different behavior, that > would be okay, because she'd specifically requested it by loading > (srfi srfi-18). I can always get those if I want them with (@ (guile) make-condition-variable). Also, unless there's a type conflict, I think other existing modules simply assume you can deal with more optional arguments than you expect. For example, SRFI-1 adds a third optional argument to assoc, the `=' argument. You can use `#:replace' in define-module to suppress the warning. -- ;;; Stephen Compall ** http://scompall.nocandysw.com/blog ** "Peta" is Greek for fifth; a petabyte is 10 to the fifth power, as well as fifth in line after kilo, mega, giga, and tera. -- Lee Gomes, performing every Wednesday in his tech column "Portals" on page B1 of The Wall Street Journal _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel