From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: No Itisnt Newsgroups: gmane.lisp.guile.devel Subject: Re: expression Date: Wed, 23 Jun 2010 18:14:35 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1277334888 31433 80.91.229.12 (23 Jun 2010 23:14:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Jun 2010 23:14:48 +0000 (UTC) Cc: guile-devel@gnu.org To: Michael Lucy Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 24 01:14:47 2010 Return-path: Envelope-to: guile-devel@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 1ORZ9a-00056P-VB for guile-devel@m.gmane.org; Thu, 24 Jun 2010 01:14:47 +0200 Original-Received: from localhost ([127.0.0.1]:35544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORZ9a-0006yA-3T for guile-devel@m.gmane.org; Wed, 23 Jun 2010 19:14:46 -0400 Original-Received: from [140.186.70.92] (port=36109 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORZ9T-0006y5-18 for guile-devel@gnu.org; Wed, 23 Jun 2010 19:14:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORZ9S-0007pD-17 for guile-devel@gnu.org; Wed, 23 Jun 2010 19:14:38 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:32822) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORZ9R-0007p4-Ti for guile-devel@gnu.org; Wed, 23 Jun 2010 19:14:37 -0400 Original-Received: by vws4 with SMTP id 4so1707225vws.0 for ; Wed, 23 Jun 2010 16:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JI81TGHxW/YIRA0mSdp13PXoHL5eRfaqmakxQpNnTgE=; b=X6NY+HqYjIMHxLfjsFkwj2VV0myVOrncGfdTu/7hTA4Too33ol0cUIjU4IO296Rv0V c/vwXPLV0wu1Ct2opFYKSHdIAHDFfDOnG6xspCKj+ROJefSg54xaFBbt8M4mJnmx4FLa Q1ZLd61EsWw7lffs3GOwX4DBEtZW3YdsSe5dE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jYyq/gcZ40lvTVnOrEfWaxt4ETmU+OBZs/tfnnfxJDc5ZDe+yctDML6GbYorzlojNm p7hNzdGDgaOlCa3bVMNVUtRwD+HwfdUJTzEkaQM9g5CGNENX/zcNnvsiCeIl29Ck7U4Q SMqmgvnWju7rCKms+zuqP5oydmJMVHI4o9pbM= Original-Received: by 10.224.73.79 with SMTP id p15mr5594800qaj.21.1277334875904; Wed, 23 Jun 2010 16:14:35 -0700 (PDT) Original-Received: by 10.229.224.67 with HTTP; Wed, 23 Jun 2010 16:14:35 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10555 Archived-At: On Wed, Jun 23, 2010 at 4:09 PM, Michael Lucy wrot= e: > Hey, > > Is there any scheme expression that will just get ignored when the > scheme code is compiled? > > I'm generating some code with a function like: > > (define (gen-update-ab updatea updateb) > =A0`(begin > =A0 =A0 ,(if updatea `(set! a (+ a 1)) `(donothing)) > =A0 =A0 ,(if updateb `(set! b (+ b 1)) `(donothing)))) > > And ideally I could replace the donothing function with something that > will get discarded during compilation. I'm not sure if Guile will discard the result, but I think *unspecified* is the idiomatic value for those sorts of situations.