[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] *crunch*
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] *crunch* |
Date: |
Thu, 19 Apr 2007 08:21:52 +0200 |
On 4/18/07, Andre Kuehne <address@hidden> wrote:
I tried to compile something like this:
(crunch
(define (f32vector+ va vb)
(let* ((n (f32vector-length va))
(vr (make-f32vector n 0)))
(do ((i 0 (add1 i)))
((>= i n))
(f32vector-set! vr i (+ (f32vector-ref va i)
(f32vector-ref vb i))))
vr)))
but got the following instead:
Error: illegal foreign return type `f32vector'
Is this currently not supported or is something else misssing?
The valid result types are the intersection of the types that the
Chicken FFI handles (http://chicken.wiki.br/Foreign%20type%20specifiers)
and the types crunch understands, which is c-string and the number types.
cheers,
felix