[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: type friction C <-> scheme
From: |
Catonano |
Subject: |
Re: type friction C <-> scheme |
Date: |
Sat, 10 Jun 2017 08:26:41 +0200 |
2017-06-10 0:33 GMT+02:00 Matt Wette <address@hidden>:
I think Mike caught your real error: you were passing (list ‘* ‘int ‘*) and
> it wants (list ‘* int ‘*). `int’ is a variable defined by guile.
>
And isn't `*' a variable defined in guile too ?
>
> scheme@(guile-user)> (use-modules (system foreign))
> scheme@(guile-user)> int
> $1 = 8
>
yes, and
scheme@(freexl common)> *
$14 = #<procedure * (#:optional _ _ . _)>
I took a look at the guile-gcrypt code again
it's full of things like
'(* * ,int ,size_t *)
that is, only asterisks (pointers) are quoted
Other types are not
So this must be an established convention
It just seems unconsistent to me
Re: type friction C <-> scheme, Matt Wette, 2017/06/11