From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rixed@happyleptic.org Newsgroups: gmane.lisp.guile.user Subject: Re: scm_defined_p(sym, env) Date: Mon, 29 Aug 2011 13:30:11 +0200 Message-ID: <20110829113011.GB12774@ccellier.rd.securactive.lan> References: <1314099404.2168.6.camel@debian2.myhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1314617426 17433 80.91.229.12 (29 Aug 2011 11:30:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Aug 2011 11:30:26 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Aug 29 13:30:21 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qy02k-0000IZ-R7 for guile-user@m.gmane.org; Mon, 29 Aug 2011 13:30:18 +0200 Original-Received: from localhost ([::1]:54527 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy02k-0007NJ-9e for guile-user@m.gmane.org; Mon, 29 Aug 2011 07:30:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy02h-0007NC-SN for guile-user@gnu.org; Mon, 29 Aug 2011 07:30:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qy02g-0000Oe-N4 for guile-user@gnu.org; Mon, 29 Aug 2011 07:30:15 -0400 Original-Received: from eneide.happyleptic.org ([213.251.171.101]:40907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qy02g-0000Oa-HY for guile-user@gnu.org; Mon, 29 Aug 2011 07:30:14 -0400 Original-Received: from extranet.securactive.org ([82.234.213.170] helo=ccellier.rd.securactive.lan) by eneide.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1Qy02f-0006T4-V5 for guile-user@gnu.org; Mon, 29 Aug 2011 13:30:14 +0200 Original-Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.72) (envelope-from ) id 1Qy02d-0003LA-GI for guile-user@gnu.org; Mon, 29 Aug 2011 13:30:11 +0200 Mail-Followup-To: rixed@happyleptic.org, guile-user@gnu.org Content-Disposition: inline In-Reply-To: <1314099404.2168.6.camel@debian2.myhost> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.251.171.101 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8743 Archived-At: -[ Tue, Aug 23, 2011 at 12:36:44PM +0100, Richard Shann ]---- > I have defined a function with one needed and one optional arg, using > > scm_c_define_gsubr (name, 2, 0, 0, callback); You mean : scm_c_define_gsubr (name, 1, 1, 0, callback); don't you ?