From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Shann Newsgroups: gmane.lisp.guile.user Subject: Re: Creating a top level definition if none so far exists, on the fly. Date: Thu, 15 Aug 2013 14:37:30 +0100 Message-ID: <20130815143730.5afc5963@DebianBox.loc> References: <20130815115759.585bf639@DebianBox.loc> <1376565532.8837.YahooMailNeo@web120405.mail.ne1.yahoo.com> <20130815130802.377f24ed@DebianBox.loc> <1376569069.53209.YahooMailNeo@web120401.mail.ne1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1376573883 21833 80.91.229.3 (15 Aug 2013 13:38:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 13:38:03 +0000 (UTC) Cc: "guile-user@gnu.org" To: Mike Gran Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 15 15:38:05 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9xka-0000PO-Tg for guile-user@m.gmane.org; Thu, 15 Aug 2013 15:38:05 +0200 Original-Received: from localhost ([::1]:53416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xka-00076m-Im for guile-user@m.gmane.org; Thu, 15 Aug 2013 09:38:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xkN-00075e-PG for guile-user@gnu.org; Thu, 15 Aug 2013 09:37:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9xkI-0005d9-L1 for guile-user@gnu.org; Thu, 15 Aug 2013 09:37:51 -0400 Original-Received: from know-smtprelay-omc-3.server.virginmedia.net ([80.0.253.67]:50192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9xkI-0005co-BD for guile-user@gnu.org; Thu, 15 Aug 2013 09:37:46 -0400 Original-Received: from DebianBox.loc ([87.113.90.166]) by know-smtprelay-3-imp with bizsmtp id D1dk1m01R3bM2Xr011dkP8; Thu, 15 Aug 2013 14:37:45 +0100 X-Originating-IP: [87.113.90.166] X-Spam: 0 X-Authority: v=2.0 cv=LIo+2+q9 c=1 sm=1 a=SfNYRvQK1J0XCfH7p4uLGA==:17 a=F4s1a0EW8f8A:10 a=F9S3lJeE8MMA:10 a=8nJEP1OIZ-IA:10 a=8RloEfZUAAAA:8 a=gDWKZ2GaSMUA:10 a=CjxXgO3LAAAA:8 a=mDV3o1hIAAAA:8 a=u2rOKu-Si_nTyqmsg6AA:9 a=wPNLvfGTeEIA:10 a=32vPtdPitpkA:10 a=rC2wZJ5BpNYA:10 a=O58u2wXj750A:10 a=SfNYRvQK1J0XCfH7p4uLGA==:117 In-Reply-To: <1376569069.53209.YahooMailNeo@web120401.mail.ne1.yahoo.com> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.0.253.67 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:10636 Archived-At: On Thu, 15 Aug 2013 05:17:49 -0700 (PDT) Mike Gran wrote: >=20 >=20 > > From: Richard Shann > >> > From: Richard Shann > >> >=20 > >> > I have just started using GNU/Denemo under the guile 2.x and the > >> > following construct no longer works: > >> >=20 > >> > (if (not (defined? 'ToggleFiguredBassMode::Active)) > >> > =A0 =A0 (define ToggleFiguredBassMode::Active #f)) > >>=20 > >> I remember Andy once suggested on this list that > >> =A0 > >> (define-once ...)=20 > >=20 > > Thank you! that works perfectly. Now there is the question of > > supporting both guile 2.0 and 1.8 users. I seem to remember this > > came up in another context, but unfortunately upgrading to Debian > > Wheezy has lost me any easy access to my old emails. > > I'll have a delve around to see if it can be done, but if anyone > > just knows off the top of their head please say. >=20 > Try looking at the various responses to this thread >=20 > http://lists.gnu.org/archive/html/guile-user/2013-02/msg00173.html > Hmm, so I asked about this before in February. Gives me an idea of the extent of my memory span - it didn't even ring a bell. (I should explain that I didn't myself have a guile 2.0 system at the time so I was sorting this all out as a proxy for someone else...) The consequence was that I didn't know of the other half dozen uses of that construct which have persisted until now. Well, thank you for not bawling me out. Richard > -Mike