From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierpaolo Bernardi Newsgroups: gmane.lisp.guile.user Subject: Re: cond clause does not allow definitions Date: Wed, 22 May 2024 23:07:46 +0200 Message-ID: References: <5d1be852da93dd324fdbcaa24ed1b444@aleph0.info> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Damien Mattei , guile-user To: Jeronimo Pellegrini Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed May 22 23:08:37 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s9tCP-0009mr-5I for guile-user@m.gmane-mx.org; Wed, 22 May 2024 23:08:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9tBw-0008Rr-AO; Wed, 22 May 2024 17:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9tBr-0008Rg-ES for guile-user@gnu.org; Wed, 22 May 2024 17:08:04 -0400 Original-Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9tBq-0007ui-1L for guile-user@gnu.org; Wed, 22 May 2024 17:08:03 -0400 Original-Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-8032770aeadso58626241.0 for ; Wed, 22 May 2024 14:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716412080; x=1717016880; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uBZbB6KrSoYEoa4Z/6I2ynbpABGiDw8Yj+lzGxb/ZIk=; b=SdnSZOf2SLFun3nyixOlIEZa+oyOFZT6QknXNSDJ0lLRd2Az8VUi+Ky8uQwpHVQ4TN yOzbvyvhcmxNZS/cQHidF0ZcKAGRkH+LBwGKaqBmZs3R6cPvfVyE2QONXJBJaCBMiPyZ 41WgllCO+4G09Rj6UqhBkWUhHiiu4vmQQX0PFQ4fauZwhQYJ6eHYoOjcCebHlVFcLWi2 xP+SZKucya+gs020Iur5PDxRHU1tH+Q9BSDd70MBqGs1izuM7E7RsIeZZN/br9/3vsGJ HQGVI5Krt0blAEYhX1P9W78XqNHcLkYobwYU5gdRTCrCYefhPinLqXu6MJ4SoPwEcnHU WfEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716412080; x=1717016880; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uBZbB6KrSoYEoa4Z/6I2ynbpABGiDw8Yj+lzGxb/ZIk=; b=PASDQ22fVbl2vzp2FwDos7ufUy5NMVZyxjCxjqwW9F3PWsV4US57iZ1MO5i6uqpDRG JWPXrfuV0/ISv7R3iikZ17agIdtgSqBrCjcgjK4TkIwBoMU1yuCIWZtvzynLnAtBbr0g icDjn7tdaUQNQxqFQaG1o32tLf3X3YiMpkfURYiVUSLIT+qREHkQyXX6ZxwAFR0vysFJ 8bFTQbztsm5UL5IIUaKNSR4SHkdFH8dKNRfm1QWeyytzwQjqBKfyRwElVE7bn7aggeVY CQ1k3vm59JKPH8LmyrCnJjgc1s6Dl93kQE8DR6+SSL0+NAiwPUjGWPicgZPB7D1UG+JK fixw== X-Forwarded-Encrypted: i=1; AJvYcCWzJSi3bfpObNirRlVoHbbxaMepkOfDb/aj90Evq2D9z02JmKQGmc3W4cFpURL9h9vGV7Hb73FR3xgRwbIrP26q610= X-Gm-Message-State: AOJu0Yx504nDwsAyBHONZW3tXBwIL+w0WGrqpwrP7iZ5smfT39is1tue n1lkvBsvqKi8Pkdu268TkMFbMd546v90GCt462KockUBNBmWS/2SDw0eTXV7r1noy50KJ2YCERK cPd7DaOLOvwO3U7McblSRE23We59PxseB8k0= X-Google-Smtp-Source: AGHT+IEZMbWFT7rhtJxmcJYvZAtEzAYSH9jWrluDLoNUTiLXYEjl+V2LCXDuv/U2BBEE6RkC84JgbGsYoUklLT4xgsM= X-Received: by 2002:a05:6122:411c:b0:4d4:2fbc:e61f with SMTP id 71dfb90a1353d-4e2185f28fbmr3317102e0c.14.1716412080467; Wed, 22 May 2024 14:08:00 -0700 (PDT) In-Reply-To: <5d1be852da93dd324fdbcaa24ed1b444@aleph0.info> Received-SPF: pass client-ip=2607:f8b0:4864:20::929; envelope-from=olopierpa@gmail.com; helo=mail-ua1-x929.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19679 Archived-At: On Wed, May 22, 2024 at 10:08=E2=80=AFPM Jeronimo Pellegrini wrote: > A: (cond (#t (define x 7) x)) > B: (cond (else (define x 7) x)) > > | system | A | B | > |-------------|-------|-------| > | Bigloo | 7 | 7 | > | Biwa | 7 | 7 | > | Chez | error | 7 | > | Chibi | error | 7 | In chez: > (cond (else (define x 7) x)) 7 > x 7 which looks like a bug to me. You may check if x is defined outside of the cond expression in the other implementations which do not raise an error too?