[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-janitors] #574: Define-constant cannot be used with the FFI
From: |
Chicken Trac |
Subject: |
Re: [Chicken-janitors] #574: Define-constant cannot be used with the FFI |
Date: |
Tue, 10 May 2011 17:55:21 -0000 |
#574: Define-constant cannot be used with the FFI
--------------------------------+-------------------------------------------
Reporter: sjamaan | Owner: felix
Type: defect | Status: new
Priority: not urgent at all | Milestone:
Component: compiler | Version: 4.6.x
Resolution: | Keywords: constants, ffi, foreign values
--------------------------------+-------------------------------------------
Comment(by sjamaan):
Oddly enough, the following does ''not'' give an error. When I run it, it
cleanly prints the number 1 on stdout. (well, not that odd, as it's a
collapsible literal symbol "x", I guess...)
What I really don't understand is why it doesn't say {{{"error in constant
evaluation of ~S for named constant ~S"}}} when {{{eval}}} fails. Is the
syntax-error-hook bound to some odd error handler which quits the compiler
immediately? If so, any error in eval would cause this to happen, I think?
{{{
#!scm
(define x (foreign-value "1" int))
(define-constant one x)
(print one)
}}}
--
Ticket URL: <https://bugs.call-cc.org/ticket/574#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.