From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeronimo Pellegrini Newsgroups: gmane.lisp.guile.user Subject: Re: cond clause does not allow definitions Date: Wed, 22 May 2024 17:07:35 -0300 Message-ID: <5d1be852da93dd324fdbcaa24ed1b444@aleph0.info> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30637"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Damien Mattei Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed May 22 22:08:25 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 1s9sFz-0007Su-Bj for guile-user@m.gmane-mx.org; Wed, 22 May 2024 22:08:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9sFV-0004By-B2; Wed, 22 May 2024 16:07:45 -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 1s9sFT-0004Bf-8e for guile-user@gnu.org; Wed, 22 May 2024 16:07:43 -0400 Original-Received: from mail.aleph0.info ([66.228.54.186] helo=aleph0.info) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9sFQ-0005aZ-KD for guile-user@gnu.org; Wed, 22 May 2024 16:07:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aleph0.info; s=mail; t=1716408456; bh=lIbUxu6kDJ1oHkadiN5x/KvpiZfhxOyYYNqQQlOgVsE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZTefp94CkjxmYxez6LWbzjze5rS2XLLHO61c4G/CI1vuCA5izxLEEzFlez1CyvVW1 v0bsn7ktpCLVoSDIjLeBSTSAKhqpcxieA5Uru1xY5xac4yoq0rB8guwhpTtzMyqN6y G42blljKcjF2whU6lzgvXLPOCDHRP8fTgx8MSlV26C+Jjm+naqK2iQZ/QW0I7NgBvv 7wl7l0Nrvut91daHUq/jXyc55muJO11rAjb9zgj6Rmbl72vdMZFHJD5zGleVLTofnC MZHpVh81epjsy2yxDR2bvy6n+lhBcfx7mYiS1UmX+XoNoqR0hFUsLvc1qyQOpMcfPp 6syjbqe+Dmshw== Original-Received: from localhost (localhost [127.0.0.1]) by aleph0.info (Postfix) with ESMTP id 384B942374; Wed, 22 May 2024 17:07:36 -0300 (-03) Original-Received: from aleph0.info ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavis, port 10024) with LMTP id 6cu_L3dCs_J2; Wed, 22 May 2024 17:07:36 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aleph0.info; s=mail; t=1716408456; bh=lIbUxu6kDJ1oHkadiN5x/KvpiZfhxOyYYNqQQlOgVsE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZTefp94CkjxmYxez6LWbzjze5rS2XLLHO61c4G/CI1vuCA5izxLEEzFlez1CyvVW1 v0bsn7ktpCLVoSDIjLeBSTSAKhqpcxieA5Uru1xY5xac4yoq0rB8guwhpTtzMyqN6y G42blljKcjF2whU6lzgvXLPOCDHRP8fTgx8MSlV26C+Jjm+naqK2iQZ/QW0I7NgBvv 7wl7l0Nrvut91daHUq/jXyc55muJO11rAjb9zgj6Rmbl72vdMZFHJD5zGleVLTofnC MZHpVh81epjsy2yxDR2bvy6n+lhBcfx7mYiS1UmX+XoNoqR0hFUsLvc1qyQOpMcfPp 6syjbqe+Dmshw== Original-Received: from randomnode.info (localhost [127.0.0.1]) (Authenticated sender: je) by aleph0.info (Postfix) with ESMTPA id ED18842373; Wed, 22 May 2024 17:07:35 -0300 (-03) In-Reply-To: X-Sender: j_p@aleph0.info Received-SPF: pass client-ip=66.228.54.186; envelope-from=j_p@aleph0.info; helo=aleph0.info 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, SPF_HELO_PASS=-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:19674 Archived-At: Hello! On 2024-05-22 16:26, Damien Mattei wrote: > scheme@(guile-user)> (cond (#t (define x 7) x)) > While compiling expression: > Syntax error: > unknown file:7:10: definition in expression context, where definitions > are > not allowed, in form (define x 7) I get no error here (Guile 3.0.9.164-e1690, compiled locally): scheme@(guile-user)> (cond (else (define x 7) x)) $1 = 7 scheme@(guile-user)> (cond (#t (define x 7) x)) $2 = 7 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 | | Chicken | 7 | 7 | | Cyclone | 7 | 7 | | Gambit | error | error | | Gauche | 7 | 7 | | Guile | 7 | 7 | | Kawa | 7 | 7 | | LIPS | 7 | error | | Loko | error | error | | MIT | error | 7 | | Racket | 7 | 7 | | Sagittarius | 7 | 7 | | Scheme48 | error | 7 | | Scheme 9 | error | 7 | | SCM | 7 | 7 | | STklos | 7 | 7 | | Tinyscheme | 7 | 7 | * LIPS does not recognise the 'else' clause. J.