[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scm_with_continuation_barrier returning #f on throws ?
From: |
Cedric Cellier |
Subject: |
scm_with_continuation_barrier returning #f on throws ? |
Date: |
Mon, 6 Sep 2010 13:20:07 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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 ?
- scm_with_continuation_barrier returning #f on throws ?,
Cedric Cellier <=