From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from u1.atthost.pl (u1.atthost.pl [185.255.40.21]) by sourceware.org (Postfix) with ESMTPS id 03F8A3858C50 for ; Wed, 8 May 2024 20:49:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 03F8A3858C50 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=jcubic.pl Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=attmail.pl ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 03F8A3858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.255.40.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715201376; cv=none; b=SZvOiVKUQ2e85RrAIUMzEV37LOwFgXpMgvZVFlWwHwX8nwyuEqcUZwBtjqzIh1BxT2ZrmjhwwnuCBttEyT/kqWKQ9GyS5jrUtOVYxU9Zf+Vs4Uf5W9G97WFORuSmhbZiah3hLtHrHG843Mehbwc4XIyG1n/52fbvWBQOeA+LWvM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715201376; c=relaxed/simple; bh=54S9lsnskcUC4C6UL1aidbTAuseefchGCQqw1Zrzvjk=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=izcpljZIaD45SD0Pc/BcWu6fQIxoqZPvON24rVT0WbdPqP/vzvVSAk5eoiuOtiwIfVxPQwLCjy+bL2cN9X9z9Fa+WYMv8N1/CPpXJpI/l2EyOMT2Wfs1Jc9x8I3gGiVgQVcizuYN4ZaWQBGvLJ3Pi7l6gLR7VjAaTl22w/On5lo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (unknown [127.0.0.1]) by u1.atthost.pl (Postfix) with ESMTP id 4434F1248FF for ; Wed, 8 May 2024 20:49:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at atthost.pl Received: from u1.atthost.pl ([185.255.40.21]) by localhost (atthost.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7c-xq4SVDYHj for ; Wed, 8 May 2024 22:49:31 +0200 (CEST) Received: from jcubic (unknown [185.129.113.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jcubic@jcubic.pl) by u1.atthost.pl (Postfix) with ESMTPSA id DDBC9122D3F for ; Wed, 8 May 2024 22:49:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 u1.atthost.pl DDBC9122D3F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=jcubic.pl; s=atthost; t=1715201371; bh=54S9lsnskcUC4C6UL1aidbTAuseefchGCQqw1Zrzvjk=; h=Date:From:To:Subject:From; b=cwoMJAGFJ3rxrqySeyZgOALDJkkjl/QU+oOXYAYqnwxhcZ6Vp8uRZg4D/K6OKV1/9 ebJW3grAwSue05ReCtvYGjdHdMIFiV9u6tF30mGUXihpr+52q50nN/dRmnCiEtLysL GTPPexTYTXfNeC4VczwJ4mxoAVjBUsalIcp50NLg= Date: Wed, 8 May 2024 22:49:29 +0200 From: "Jakub T. Jankiewicz" To: kawa@sourceware.org Subject: SRFI-251 Message-ID: <20240508224929.70179bf0@jcubic> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Just FYI, this SRFI can be added to list of supported SRFI, since this how it works in Kawa, not like in R7RS suppose to work. https://srfi.schemers.org/srfi-251/ I just realized that my implementation LIPS Scheme also work in the same way, I'm adding this to the list of supported SRFI, you may want to do the same. This is example code that is not valid according to R7RS, but valid when SRFI-251 is implemented: (let ((x 0)) (display "the result is") (define (foo) x) (display ": ") (define xx 42) (display (foo))) Because define is not at the top of the body, like variables in C programming language. Jakub -- Jakub T. Jankiewicz, Senior Front-End Developer https://jcubic.pl/me https://lips.js.org https://koduj.org