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: (unknown) Date: Tue, 1 Aug 2023 11:53:30 +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="32303"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Aug 01 11:54:29 2023 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 1qQm5E-0008EG-EW for guile-user@m.gmane-mx.org; Tue, 01 Aug 2023 11:54:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQm4Z-0000HZ-Bg; Tue, 01 Aug 2023 05:53:47 -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 1qQm4X-0000HG-PI for guile-user@gnu.org; Tue, 01 Aug 2023 05:53:45 -0400 Original-Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQm4W-0008NR-5d for guile-user@gnu.org; Tue, 01 Aug 2023 05:53:45 -0400 Original-Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4fe28e4671dso4367939e87.0 for ; Tue, 01 Aug 2023 02:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690883622; x=1691488422; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=M0ZNoEzfVDNQZX60RSNhSjNcBtdwgCUpMqzqsJl/lDw=; b=SFdnyavYtqDD7GCM9xu5PUkqoFbh1LyqXUg2kGOGb3PeIazIiREQmjD6vp3bsNa5pP E6gjmKDnXzGiJNI2C1jlNsgubMuevdLCJVNxtI2n/hP8dxA0jfP9gqWvh0o9eBTDkFL9 Cw++darn1cg4RlxaZbwKbk1KNwHNbi8rsxtGuyAUGnk0rM7he3RoEegdQ5Ucj4iGy0Nr 3/YBZ7xXL3QY7dujqkiCZpv4RqG0mKh/xGj7UtjRcjxVvnymx/CXstW02ZUqVZCarhKd whUCPwoSj5FauiiUNfop6lJqlikVgAXJqaMR85efs8g5GXG+RvAupPVf6xvtWAtjy0is 1Nbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690883622; x=1691488422; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=M0ZNoEzfVDNQZX60RSNhSjNcBtdwgCUpMqzqsJl/lDw=; b=ZQOXhvtJ8IPi5FjhIPxssDXgOnPkwgCDXkSPLCisxtJaAbyDDmAvBCfiruivi248lY v514I4jKhO1s4JVy26rAakdiN+u0+66qMJVZ4vIvZc6UKnFcUTin8o590P0x6M6u0jsX AHRKiYmlzCnxBjaZaEAp+kyLrVsuhGk9Xesq9a2jBAdHCcrNq/gL1Lq86nHVS5mY0IwZ TEB73OThEEIGmWxjjruAtZl/7WJgOGD67WxNClzGO7A4k1ePFZnr+RBioAoUzbYriXK5 Y6DzmHM5YO53xfiSO/KVq2VqjyU4V4yb/ogK+kgvSAhz+5P6DF/4U+iCdsxOEfaYWRc0 OuNg== X-Gm-Message-State: ABy/qLYnKjcGGZRvrovZ1h9ck7Cylk6bDsHTdPDQgq4ph43b9OM2EKF8 RtXSWy10urmb9xJxp8JGJDiwAtWKNfYbJ7KQI/bjMrFjbaM= X-Google-Smtp-Source: APBJJlG3z6mRDyQlMGnVuxYaAi7oBobVyJ04EOw9Y0AnunfzlENssqxzaSt5ns0ZKI6zuWlWGJJnI41f5MvddtLZqCA= X-Received: by 2002:a05:6512:b96:b0:4fb:79b5:5512 with SMTP id b22-20020a0565120b9600b004fb79b55512mr2200484lfv.66.1690883621525; Tue, 01 Aug 2023 02:53:41 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=damien.mattei@gmail.com; helo=mail-lf1-x129.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, T_SCC_BODY_TEXT_LINE=-0.01 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:19112 Archived-At: hello, i have this error: ice-9/boot-9.scm:1685:16: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" (1 0))'. i thought it was a 'match' related error as i used it in a macro: ;;(display "before match") (newline) (match (list index1-or-keyword-eval-pos index2-or-keyword-eval-pos) ;; {a <+ (make-vector 7 0)} ;; '#(0 0 0 0 0 0 0) ;; > {a[/ /] <- #(1 2 3)} ;; > a ;; '#(1 2 3 0 0 0 0) (((? (cut equal? <> /)) (? (cut equal? <> /))) (container-copy! container-eval 0 expr-eval)) ;; {s <+ (string-append "abcdefgh")} ;; "abcdefgh" ;; > {s[3 /] <- "zob"} ;; > s ;; "abczobgh" ;; > ((i1 (? (cut equal? <> /))) (container-copy! container-eval i1 expr-eval)) (((? (cut equal? <> /)) i2) (container-copy! container-eval 0 expr-eval 0 i2)) ((i1 i2) (if (vector? container-eval) ;; normal case (function-array-n-dim-set! container-eval expr-eval (reverse (list i1 i2))) (array-set! container-eval index1-or-keyword-eval index2-or-keyword-eval expr-eval)))) ;; end match if really the given args are (0 1) i suppose the last case of match should be evaluated? why not? quoting the whole part of the macro and i still have the issue this seems to prove the problem is in other part of my code but match is only used here??? so i do not understand i search on the net and only find relating issues with guix ,which i do not use: https://www.youtube.com/watch?v=sqYGI5Ow2wY i probably missed something cross-developping between my code in guile and racket as the 'match' are not compatible but i'm sticked with this problem for hours... any idea??? if i use old code i suppose it will work (i have older version) Damien