From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Can't define in (if...) after (use-syntax (ice-9 syncase)) ? Date: Wed, 01 Sep 2010 08:23:45 -0700 Message-ID: References: <20100827124917.GA6222@securactive.net> <87r5hkrw2e.fsf@delenn.lan> <20100901071233.GA27835@securactive.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283354503 9670 80.91.229.12 (1 Sep 2010 15:21:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 15:21:43 +0000 (UTC) Cc: guile-user@gnu.org To: Cedric Cellier Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Sep 01 17:21:41 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oqp86-0004yT-74 for guile-user@m.gmane.org; Wed, 01 Sep 2010 17:21:38 +0200 Original-Received: from localhost ([127.0.0.1]:35557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqp85-0008Qb-I2 for guile-user@m.gmane.org; Wed, 01 Sep 2010 11:21:37 -0400 Original-Received: from [140.186.70.92] (port=37739 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oqp7y-0008PP-Jl for guile-user@gnu.org; Wed, 01 Sep 2010 11:21:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oqp7u-0004d2-V0 for guile-user@gnu.org; Wed, 01 Sep 2010 11:21:30 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:63581 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oqp7u-0004SY-RJ for guile-user@gnu.org; Wed, 01 Sep 2010 11:21:26 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 147CED2EC7; Wed, 1 Sep 2010 11:20:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=2ljKeiRCQ0rwiHNB6yfCw193C+k=; b=nSkj9Q bu07HLNzIKKRy8+ZlB3D5wqETl4+DEOhLz9ppnU5jlPRqFl4oVfKdBLi4Vye38SW mgzWkAQSLMADKkqJf9+GTrlG+LegpjqLRwXBk7WTqTm75u+43VzpvOlPDplk09Pr Rgr/hx8pcydAtr6x8dLmiheec7jwlSB6BxWo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Z5VUvsTpfemaZzWEZgJcSXxa+jsm03BI xWYwF3wG7SWjsNHgelmuzCLohcVy6qFiW2XvSemNOHVMthF8qxLGvBZnoMpFdctU lJLrNMtWJNE9KCfKq8Vn38fI+PeIgjtqF5Tr7jDr12ZRyQUgbBcv/+q0ZwX3LKC2 mJAI/+nq37Y= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id F164FD2EC6; Wed, 1 Sep 2010 11:20:33 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [75.28.21.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 4AFC7D2EC3; Wed, 1 Sep 2010 11:20:31 -0400 (EDT) In-Reply-To: <20100901071233.GA27835@securactive.net> (Cedric Cellier's message of "Wed, 1 Sep 2010 09:12:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 771383C4-B5DC-11DF-8FB2-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8131 Archived-At: Hi, It's ugly, but a quick solution: On Wed 01 Sep 2010 00:12, Cedric Cellier writes: > I'm doing this : > > (if (not defined? 'foo) (define foo bar)) > > without realizing it's not legal scheme. > What would be the idiomatic way to write this ? (define foo (if (defined? 'foo) foo bar)) Andy -- http://wingolog.org/