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: Marius Vollmer
Subject: Re: scm_i_fraction_reduce thread safety
Date: Sun, 11 Jan 2004 02:31:36 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Kevin Ryde <address@hidden> writes:

> But the problem at the moment with reducing fractions is that it's
> happening when merely reading the value out.  Or what one would hope
> was merely reading the value, ie. printing or equality testing.

Yes, I agree that we should do somehting about this, even when the
general problem still remains unaddressed.

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?

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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