From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Cedric Cellier Newsgroups: gmane.lisp.guile.user Subject: scm_with_continuation_barrier returning #f on throws ? Date: Mon, 6 Sep 2010 13:20:07 +0200 Message-ID: <20100906112007.GA21079@securactive.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283772065 20993 80.91.229.12 (6 Sep 2010 11:21:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2010 11:21:05 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 06 13:21:03 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OsZky-0005I9-8r for guile-user@m.gmane.org; Mon, 06 Sep 2010 13:21:03 +0200 Original-Received: from localhost ([127.0.0.1]:43175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsZks-0008TX-1g for guile-user@m.gmane.org; Mon, 06 Sep 2010 07:20:54 -0400 Original-Received: from [140.186.70.92] (port=55823 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsZkl-00081N-30 for guile-user@gnu.org; Mon, 06 Sep 2010 07:20:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsZkE-0008Pw-43 for guile-user@gnu.org; Mon, 06 Sep 2010 07:20:15 -0400 Original-Received: from smtp5-g21.free.fr ([212.27.42.5]:54116) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsZkD-0008PI-HS for guile-user@gnu.org; Mon, 06 Sep 2010 07:20:14 -0400 Original-Received: from apc.happyleptic.org (unknown [82.67.194.89]) by smtp5-g21.free.fr (Postfix) with ESMTP id 6BD20D480DD for ; Mon, 6 Sep 2010 13:20:06 +0200 (CEST) Original-Received: from ccellier.rd.securactive.lan (extranet.securactive.org [82.234.213.170]) by apc.happyleptic.org (Postfix) with ESMTP id 6DBDC33812 for ; Mon, 6 Sep 2010 13:29:12 +0200 (CEST) Original-Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.71) (envelope-from ) id 1OsZk7-0005UZ-Rk for guile-user@gnu.org; Mon, 06 Sep 2010 13:20:07 +0200 Mail-Followup-To: Cedric Cellier , guile-user@gnu.org Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8159 Archived-At: Hello ! With guile-1.8.7, scm_with_continuation_barrier does not seam to return SCM_BOOL_F on error. I did this : static void *load_file(void *filename) { scm_c_primitive_load((char const *)filename); scm_force_output(scm_current_output_port()); return NULL; } ... SCM res = scm_with_guile(load_file, "a_file_that_doesnt_exist"); Thus, scm_c_primitive_load displays an ERROR message and throws out. But scm_with_guile, ie. the underlying scm_with_continuation_barrier, returns 0x0. Is the bug in the doc, in the code or once again in my head ?