From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: mpz_import Date: Tue, 21 Sep 2004 02:28:51 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <873c1cv518.fsf@zagadka.ping.de> References: <877jrqr7ni.fsf@zip.com.au> <77888DE4-F4FF-11D8-9F1C-000D93673682@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1095726559 19373 80.91.229.6 (21 Sep 2004 00:29:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Sep 2004 00:29:19 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 21 02:29:08 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C9YWq-0007Rw-00 for ; Tue, 21 Sep 2004 02:29:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9Yck-0005vN-4Z for guile-devel@m.gmane.org; Mon, 20 Sep 2004 20:35:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9Ycg-0005v7-Bm for guile-devel@gnu.org; Mon, 20 Sep 2004 20:35:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9Yce-0005ut-PT for guile-devel@gnu.org; Mon, 20 Sep 2004 20:35:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9Yce-0005uq-LM for guile-devel@gnu.org; Mon, 20 Sep 2004 20:35:08 -0400 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9YWa-0006wN-Ra for guile-devel@gnu.org; Mon, 20 Sep 2004 20:28:53 -0400 Original-Received: from [195.138.42.212] (helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 4.34) id 1C9YWa-0004DD-1c for guile-devel@gnu.org; Tue, 21 Sep 2004 02:28:52 +0200 Original-Received: (qmail 7899 invoked by uid 1000); 21 Sep 2004 00:28:51 -0000 Original-To: =?iso-8859-1?q?Andreas_V=F6gele?= In-Reply-To: (Andreas =?iso-8859-1?q?V=F6gele's?= message of "Sun, 29 Aug 2004 17:33:45 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4132 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4132 Andreas Vögele writes: > I'd include in libguile/numbers.h and provide two C functions: > > void scm_to_mpz_t (SCM val, mpz_t result); > SCM scm_from_mpz_t (mpz_t val); Excellent, I like this a lot. I was thinking about providing scm_export_intgeror something like that, duplicating the mpz functions, but this is much nicer. It _does_ expose the use of GMP, but we will be tied to that for a the time being anyway. I will install your code and documentation. We can use it without any paper work since it is, while elegant, short enough. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel