From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8146 invoked by alias); 4 Jan 2014 14:41:48 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8136 invoked by uid 89); 4 Jan 2014 14:41:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout22.012.net.il Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 Jan 2014 14:41:45 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MYV00E00SNGXD00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sat, 04 Jan 2014 16:41:43 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MYV00EZCSTIXJ00@a-mtaout22.012.net.il>; Sat, 04 Jan 2014 16:41:43 +0200 (IST) Date: Sat, 04 Jan 2014 14:41:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v1 02/36] Guile extension language: doc additions In-reply-to: <87k3egez8e.fsf@gnu.org> To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83y52vvmga.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <52b9da59.64ab440a.0b0b.7e1c@mx.google.com> <83ha9w68av.fsf@gnu.org> <87sit4kb1t.fsf@gnu.org> <83eh4ow78t.fsf@gnu.org> <87k3egez8e.fsf@gnu.org> X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00028.txt.bz2 > From: ludo@gnu.org (Ludovic Courtès) > Cc: gdb-patches@sourceware.org > Date: Sat, 04 Jan 2014 12:57:21 +0100 > > > What about long double support? > > Guile doesn’t support it out of the box. > > If needed, it could easily be implemented as an extension: one would use > a SMOB to wrap long doubles and pass them to Scheme, and possibly define > methods for ‘+’, ‘-’, etc. for objects of this type. > > Of course, this wouldn’t be terribly efficient, but that’s not so > important here I think; what matters is that it would allow ‘long > double’ values to be passed around without loss of accuracy. > > That said, my feeling is that leaving things as is (with long doubles > cast to doubles) may prove to be sufficient for most practical uses of > GDB. > > WDYT? Well, GDB supports long double if the target does, so I thought it would be a pity to lose that when working with Guile. But maybe I misunderstand something, and this isn't a real problem.