On Sun, 21 Feb 2021, Tim Meehan wrote:
> Hello Olivier, thanks!
> Those functions helped, and now I know where in the source of Guile to look.
>
> Is "inexact" the same thing as "floating point number" in Guile-speak?
I don't think so. If I remember correctly, exact numbers are numbers
that can
I suppose that I could use something like "scm_wrong_type_arg_msg" ...
which gives better looking feedback than "#f":
scheme@(guile-user)> (random:lognormal 0 -1)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure random:lognormal: Wrong type argument in position 2 (expecting
sta
Hello Olivier, thanks!
Those functions helped, and now I know where in the source of Guile to look.
Is "inexact" the same thing as "floating point number" in Guile-speak?
Here is one of the functions in my extension - it returns a lognormal
variate. There are a bunch of things like this that coul
On Sat, 20 Feb 2021, Tim Meehan wrote:
> I'm trying my hand a writing C extensions.
> I've done this for stuff like Matlab before, and was wondering how you do
> the usual checking of the arguments that are passed in from Guile.
>
> In the manual, 6.13.13.1 "C Support" has a few functions.
> libgu
Hi Tim!
I think you may try these functions:
scm_is_true
scm_is_real_p
scm_geq_p
Best regards.
On Sun, Feb 21, 2021 at 11:57 AM Tim Meehan wrote:
> I'm trying my hand a writing C extensions.
> I've done this for stuff like Matlab before, and was wondering how you do
> the usual checking of the