From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Compatibility V1.8 and 2.0 - deprecated (debug-enable 'debug) Date: Sun, 14 Aug 2011 08:51:11 +0200 Message-ID: <87mxfch4f4.fsf@ambire.localdomain> References: <87zkjik49f.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1313304746 3839 80.91.229.12 (14 Aug 2011 06:52:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2011 06:52:26 +0000 (UTC) Cc: guile-user@gnu.org To: Ian Hulin Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Aug 14 08:52:22 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QsUYW-00085K-Fq for guile-user@m.gmane.org; Sun, 14 Aug 2011 08:52:20 +0200 Original-Received: from localhost ([::1]:39318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsUYW-0001mP-4O for guile-user@m.gmane.org; Sun, 14 Aug 2011 02:52:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsUYR-0001m6-VO for guile-user@gnu.org; Sun, 14 Aug 2011 02:52:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QsUYQ-0005SC-Ki for guile-user@gnu.org; Sun, 14 Aug 2011 02:52:15 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:33923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QsUYQ-0005Qm-85 for guile-user@gnu.org; Sun, 14 Aug 2011 02:52:14 -0400 Original-Received: from ambire.localdomain (95.248.64.208) by smtp204.alice.it (8.5.124.08) id 4E259C1B021DA378; Sun, 14 Aug 2011 08:51:54 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1QsUXQ-0001gc-Ad; Sun, 14 Aug 2011 08:51:12 +0200 In-Reply-To: (Ian Hulin's message of "Wed, 10 Aug 2011 19:50:23 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8711 Archived-At: () Ian Hulin () Wed, 10 Aug 2011 19:50:23 +0100 Thanks for the info, it would be useful but we need to things at run-time. We've got stuff in an initialization scheme script which is called from the Lilypond code image and this historically has done the (debug-enable 'debug) call. Another idea is to move these small pieces into separate files and conditionally load them... I want to be able to code it for backwards-compatibility for Guile V2 and Guile V1.8, and also not cause any deprecation warnings when running with Guile V2. E.g. ;;; Boolean thunk - are we integrating Guile V2.0 or higher with Lily? (define-public (guile-v2) (string>? (version) "1.9.10")) ... based on =E2=80=98guile-v2=E2=80=99 (for example). This might be enoug= h to keep the deprecation warnings from appearing. I don't know for sure, however.