guile-devel
[Top][All Lists]
Advanced

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

Re: scm_i_fraction_reduce thread safety


From: Kevin Ryde
Subject: Re: scm_i_fraction_reduce thread safety
Date: Mon, 12 Jan 2004 10:51:43 +1000
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> writes:
>
> User code should only use scm_numerator and scm_denominator to access
> parts of the fraction object and those functions will first reduce the
> fraction (in a thread safe way).  Wouldn't that be enough?

Yep, though it seems a shame the accessors have to be slowed down just
so printing and equality can write back.

It's probably worth thinking about reduction policy.  Certainly
printing and equality need a reduced form, but if one never actually
does those then it might be nice to have some other way, either
automatic like under gc or explicit.




reply via email to

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