[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] embedding question / seg fault
From: |
David Dreisigmeyer |
Subject: |
Re: [Chicken-users] embedding question / seg fault |
Date: |
Fri, 14 Jan 2011 22:34:09 -0500 |
Thanks Felix.
>> I looked at this post:
>>
>> http://www.mail-archive.com/address@hidden/msg11218.html
>>
>> but I don't see what the resolution would be.
>>
>> Would it be easier to just avoid using define and stick to
>> define-external? Is there any particular reason to use define?
>
> Sorry, I don't fully understand what you are trying to say. You
> can only call procedures from outside of Scheme which are
> defined with `define-external'.
I was looking at this x.scm from http://wiki.call-cc.org/man/4/Embedding :
;;; x.scm
(define (bar x) (gc #f) (* x x))
(define-external (baz (int i)) double
(sqrt i))
(return-to-host)
Not sure what I was thinking about either though...