From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Shann Newsgroups: gmane.lisp.guile.user Subject: scm_defined_p(sym, env) Date: Tue, 23 Aug 2011 12:36:44 +0100 Message-ID: <1314099404.2168.6.camel@debian2.myhost> Reply-To: richard.shann@virgin.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1314099276 31633 80.91.229.12 (23 Aug 2011 11:34:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Aug 2011 11:34:36 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Aug 23 13:34:32 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 1QvpFX-00084s-Sf for guile-user@m.gmane.org; Tue, 23 Aug 2011 13:34:32 +0200 Original-Received: from localhost ([::1]:35729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvpFX-0006Q3-Cc for guile-user@m.gmane.org; Tue, 23 Aug 2011 07:34:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvpFU-0006IS-Op for guile-user@gnu.org; Tue, 23 Aug 2011 07:34:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvpFU-0007yV-3O for guile-user@gnu.org; Tue, 23 Aug 2011 07:34:28 -0400 Original-Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]:41322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvpFT-0007yG-RR for guile-user@gnu.org; Tue, 23 Aug 2011 07:34:28 -0400 Original-Received: from know-smtpout-4.server.virginmedia.net ([62.254.123.1]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20110823113426.YWAW17535.mtaout03-winn.ispmail.ntl.com@know-smtpout-4.server.virginmedia.net> for ; Tue, 23 Aug 2011 12:34:26 +0100 Original-Received: from [46.208.135.91] (helo=[192.168.2.3]) by know-smtpout-4.server.virginmedia.net with esmtpa (Exim 4.63) (envelope-from ) id 1QvpFR-0002A3-Vb for guile-user@gnu.org; Tue, 23 Aug 2011 12:34:26 +0100 X-Mailer: Evolution 2.30.3 X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=F9S3lJeE8MMA:10 a=tOnwS5-cS8YA:10 a=IkcTkHD0fZMA:10 a=tje8SFzS3YywbN4YE7wA:9 a=QEXdDO2ut3YA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 81.103.221.49 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:8726 Archived-At: I have defined a function with one needed and one optional arg, using scm_c_define_gsubr (name, 2, 0, 0, callback); in my function I need to test if the second argument is present, it looks like I need scm_defined_p(sym, env) but, if so, how do I find the value of env for the top-level environment? Richard Shann