guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scm_num2float() ?


From: Martin Baulig
Subject: Re: scm_num2float() ?
Date: 04 Sep 2001 12:31:56 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Michael Livshin <address@hidden> writes:

> another alternative is to provide, together with the simple number->T
> function, a more flexible function like
> 
> int scm_num2foo_ext (SCM num, foo *res);

Yeah, this'd also be very useful in C programs where you want to do a
custom error checking.

> which would return 1 on success and 0 on failure.  then the
> `scm_num2foo' thingies would just wrap those.

Well, this can also be a macro.

-- 
Martin Baulig
address@hidden (private)
address@hidden (work)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]