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: Re: match error Date: Tue, 1 Aug 2023 15:46:31 +0200 Message-ID: References: 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="31404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Aug 01 15:47:05 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 1qQpiL-0007sm-7d for guile-user@m.gmane-mx.org; Tue, 01 Aug 2023 15:47:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qQpi3-0003xH-5p; Tue, 01 Aug 2023 09:46: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 1qQpi2-0003x6-J8 for guile-user@gnu.org; Tue, 01 Aug 2023 09:46:46 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qQpi0-0008Pw-Pz for guile-user@gnu.org; Tue, 01 Aug 2023 09:46:46 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4fe15bfb1adso9021166e87.0 for ; Tue, 01 Aug 2023 06:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690897603; x=1691502403; 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=Mj5gmaHkjzFr2X3tvHzlf5BH+K1d/cpILMjkxelvFak=; b=Hn1zBrDgPPYyMG38pL/cJ5KCIeIPF8iOc6RTHtPOF+ZpE6IJwnWbavJOU7YXKRTLOI t4Ul9ONFkLu9uuEGhWR8s2VAz5KZM186kcrrJqnasv48aCZWhxXY41nHFi/jDuCQhiAV m9AvPgEjkaXLXjQe8imZty46tFqLOH8oEHIHOO8DS5Kw/EHwtpHaqeq3qFrPC7MB3CLz EMEqrMNMFCjj6qE1ndbgn94q7U4tFQif9l3Z0PSahaVcP+HmMrjVYn/ab1+KkCHUswlZ iOUqGjC9tU8D+eaMbGnD56vGqQZ3CQsYgqraHb8AS1+F6SbTscvAwjkKcNiYPdLyBqGq Q05Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690897603; x=1691502403; 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=Mj5gmaHkjzFr2X3tvHzlf5BH+K1d/cpILMjkxelvFak=; b=gyYwY8qh4h1dF6t4dEjMDwwEG7IjqFuUqkDFbVRc/o+km/lr1V/LOsBkQAAqkv9df6 yY5nZxC6UjDPmpzD6pGsN0uB7bfUbeSGJguCybZutVvBSWY7/tCg26UooyroJd9dz0lk 1Q6F471xXM7ytZzT0zB0WT2DzjI8DWWpNT16ESksOAtGyHaGqXaGkrCatn6YMPh4Ac5+ hc36MArZB2fkcR7qqxU/vQVLVtVROcNrCx7O/1QOTUYPuphhkq2Fk6/GuYTirdCgpCwQ kqfOb84SuNdXYbpWivkc8IaXkLSh1J7b4pzxXEh8bzKdsGFW1Fx9Ba47V4Z4odX+AiY3 OesA== X-Gm-Message-State: ABy/qLZKCghK3SezXoPqBgnIKQcYp7o2Q3abnRhU/m6INrRCkMiu+hNU r4zYCBzALaVMpw4KLJ7wWi2vWrSI0P6SaR5jO0s= X-Google-Smtp-Source: APBJJlHBdgDL5N28HGY5n02z2wvpm729TQlnIH2YdBIK+zuoYIx0Z3hhNT94cWzI7tp8crUGD/zA34evAJqb1ZEjyBs= X-Received: by 2002:a05:6512:549:b0:4f8:7551:7485 with SMTP id h9-20020a056512054900b004f875517485mr2103423lfl.5.1690897602481; Tue, 01 Aug 2023 06:46:42 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=damien.mattei@gmail.com; helo=mail-lf1-x135.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:19117 Archived-At: yes Zelphir, sorry ,why i forgot the subject? i do not know , i'm using gmail and the feature for editing the subject is hidden :-( now it is fixed Damien On Tue, Aug 1, 2023 at 12:57=E2=80=AFPM Zelphir Kaltstahl wrote: > > On 8/1/23 11:53, Damien Mattei wrote: > > 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=3DsqYGI5Ow2wY > > > > 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 > > Hello Damien (or responding ones)! > > It would be good to have a proper subject in your message to the mailing = list, > so that one can see what your e-mail is about, without having to read > everything. : ) Also good for later searching messages to the mailing lis= t, when > remembering there being some discussion and wanting to read up on it agai= n. > > Best regards, > Zelphir > > -- > repositories: https://notabug.org/ZelphirKaltstahl >