From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: strange error message in macro Date: Thu, 1 Jul 2021 09:34:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31921"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Jul 01 09:35:22 2021 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 1lyrEH-00083K-U1 for guile-user@m.gmane-mx.org; Thu, 01 Jul 2021 09:35:21 +0200 Original-Received: from localhost ([::1]:37020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyrEG-0005xw-1n for guile-user@m.gmane-mx.org; Thu, 01 Jul 2021 03:35:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyrE4-0005xV-VI for guile-user@gnu.org; Thu, 01 Jul 2021 03:35:08 -0400 Original-Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]:40472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyrE3-0002Mj-Ck for guile-user@gnu.org; Thu, 01 Jul 2021 03:35:08 -0400 Original-Received: by mail-io1-xd34.google.com with SMTP id l5so6374740iok.7 for ; Thu, 01 Jul 2021 00:35:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+KkQNZwt47pyGo5BJlq1KGVoZYfkn/I0FQUyTyGv6i4=; b=gfW1yEDpeSBRf4aAVSxlMKO1VUJI2jtYgWqxzBG/CKZLW/BgrRqqj166H4S8vPNoYr bouu2rAOcTAsFkDjFQGYQgIHqqWzpxQcGxk0YUGc9kVCUDqGlDneX80MePdI6QOu1Bg0 r1mpjfddFSRMF0YMCmuniEKHpF14wXDy8/Az2CBEgWgzuIhNfVAVlPN6v4Mkx47MNOfl mWer+Dn3b5s6Xo+CNifD2G9F5b26guvFUu73B9Ju9/eKhuWD4cRpNuEmTmbYr9VgUzg0 ObeDXHrdZGs97VjcOfVHDTR5/IthZ/WDmowtL+lQ3l/rIir79pSr8GFXqylLItxJ7uiQ 9TIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+KkQNZwt47pyGo5BJlq1KGVoZYfkn/I0FQUyTyGv6i4=; b=UGUGbRcZGItEQQFefmXAMgeIDCsV6QvlgvT85wKwkgVo41kckYTwMibk2fD4a8pdtF jy0s+peMriyMOIXB+o0yAMEdSmEZu1HbDj3eFP2t/HWAAVfFbyXNVhoNRCCrcn6gvq71 cPZm0JdbTJAgh4PpPUwxMD9HnKFE/h9SmPd46G/DyKecpXMvWEh/l5gFq9kJJLEVyJ4s DTcVQsMmwR4XQJzRmC65/HkPmW+lF1s2R6QWOXCGkc3rQDqFGXbWC5m3Ifn4AYTL8tSP /4Xt+v5X8r8kveHDR8TDzuEoZYMudtim1Tl+2GJVzoyrQCxiMs527CwndmPyFOQTvWau maiw== X-Gm-Message-State: AOAM532FfqWH4Y8vqafgyIMO1HIlQNYCKrzsXYArwGRmkafOtTj9CN90 CjfLNd/RIXk1qjVJhQuU7n/J5CQ9UN+/+71CXPZGKelTqDgevA== X-Google-Smtp-Source: ABdhPJzMlgJ05yfxg/8R0q6j4fIlnb1mzqM4WxG8//bMq7N0HHU4iOI7ELMr9+hXsR9kYKFcnWtkS0hZiLBYxKsk13Y= X-Received: by 2002:a6b:e812:: with SMTP id f18mr716835ioh.120.1625124905662; Thu, 01 Jul 2021 00:35:05 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d34; envelope-from=damien.mattei@gmail.com; helo=mail-io1-xd34.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.lisp.guile.user:17637 Archived-At: hello, 'begin' complains of 'sequence of zero expressions in form (begin)' in: scheme@(guile-user)> ($ {x <- 7} {y <- 8} (+ x y)) While compiling expression: Syntax error: unknown file:2:0: sequence of zero expressions in form (begin) but: scheme@(guile-user)> (begin ) make no error ! basically $ is a sort of begin macro that call : (define-syntax %parse-assignment (syntax-rules () ... if i wrote: (define-syntax %parse-assignment (syntax-rules (<-) there is no more error: scheme@(guile-user)> ($ {x <- 7} {y <- 8} (+ x y)) ;;; :5:0: warning: possibly unbound variable `x' ;;; :5:0: warning: possibly unbound variable `y' 15 result is 15 and good! i think that the explanation is with syntax-rules parameters not with begin that would not accept zero expression in form , so why this strange message? i suppose i have trouble understanding the behavior and use of syntax-rules parameters anyway and can not find any reliable documentation about it. Damien