From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Utkarsh Singh Newsgroups: gmane.lisp.guile.user Subject: Re: [Utkarsh Singh] Undefined simultaneous definitions Date: Mon, 20 Sep 2021 18:48:44 +0530 Message-ID: <871r5jfkqz.fsf@gmail.com> References: <87a6k89btn.fsf@gmail.com> <877dfbankk.fsf@gmail.com> <878rzrfqti.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Stefan Israelsson Tampe Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Sep 20 15:18:39 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 1mSJBu-0007kG-MJ for guile-user@m.gmane-mx.org; Mon, 20 Sep 2021 15:18:38 +0200 Original-Received: from localhost ([::1]:36768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSJBs-0005Um-TQ for guile-user@m.gmane-mx.org; Mon, 20 Sep 2021 09:18:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSJBK-0005RP-3j for guile-user@gnu.org; Mon, 20 Sep 2021 09:18:02 -0400 Original-Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:47016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSJBI-0000mI-A4 for guile-user@gnu.org; Mon, 20 Sep 2021 09:18:01 -0400 Original-Received: by mail-pl1-x62c.google.com with SMTP id w11so1501076plz.13 for ; Mon, 20 Sep 2021 06:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=c07F+7Elbk9TVe3VD/webZ47x6nvJ/ZhJFu6NujYVw0=; b=p5+LRKbTGppa/8GHPFBID+pweIM2yiOwUFnsjgSCllKj8l3OAQqDK9MwS57CE0Q/J3 pUpKd/lHi4OlzrLUDmCzauBvP8mr9CAd/RZpr38G64T5PltJ8scHwGL/f7rnrZ7FCEVz fSv11xv4nWJ8D7WybwI53W9DkmbAbTN4iEyfZtYp1k9PFvSIRMaQVciWyfN93DdCoovL fMhTCUZXqREt1U+j6FjB0aTYJnsf60zZMrPSRBPtqIDx8O1s70FqKhF0H55bitOW0ln/ f2rEoH8dqPPS1PXL62kU8beLM1uNvTDBwBKaDL+0SNL8zJJbT9MoX2AwstGav94h6w+o 9MBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=c07F+7Elbk9TVe3VD/webZ47x6nvJ/ZhJFu6NujYVw0=; b=j7GkCVgFwQSQKNxVg8S4JvaOHyAvuJx/ItryTeJ8srOYu0hwzi6h+kECotVBuZ6SPw xvfqArM6tT690UaSqN9/+/kyBrZZi2elGHdi+/hA6e6zfsWp+WFYlgevTFjJXCrcJWps VZdtnBibRKiRm6xALooGHXW84EEdghEMW0EByrJBigCLqqaHaLm59e8UgMd1NMDQKNB1 B1swFfxNc4rc/dtakGtY38CrM+dFU3jmVSbBK6aj3Iwupuw173aOCyGIZWnp4R370bL1 Xy91ruqzvIjC6loyLrAR6nYnS0zKeL8HuvCpXeYgHTfkYLGUN4c08rb7T4L4GiiHzJy4 NPyw== X-Gm-Message-State: AOAM533LuRtIPGKJNmzL5q6lKw2DpeVAOwaykt1ugJvePl0Hnj5XjHeM 0yTqykRy/GY09OKK3BRFuGs= X-Google-Smtp-Source: ABdhPJxGRL2egHg8RnsRqdUOzqGRQa3JqN+8eK7ZrO2ZZrI6t3IVQUL7aLeEyTN3Zxv1p/686+Iq0A== X-Received: by 2002:a17:90b:2243:: with SMTP id hk3mr38239209pjb.203.1632143878751; Mon, 20 Sep 2021 06:17:58 -0700 (PDT) Original-Received: from localhost ([103.77.1.240]) by smtp.gmail.com with ESMTPSA id 141sm16103788pgf.46.2021.09.20.06.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 06:17:58 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=utkarsh190601@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: 1 X-Spam_score: 0.1 X-Spam_bar: / X-Spam_report: (0.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:17767 Archived-At: On 2021-09-20, 14:07 +0200, Stefan Israelsson Tampe wrote: Note: Now I am using Guile straight out of main branch. > I tested your code on my machine, it works! What version of guile are you > using? Again I think there is a confusion. The program I have written compiles correctly BUT the output of the program in not desirable. Here is a test: 1. Load "ambeval.scm" 2. Type (driver-loop) into your REPL session. 3. Copy and Paste following snippet: (define (findout32 x) (letrec ((even? (lambda (n) (if (= n 0) #t (odd? (- n 1))))) (odd? (lambda (n) (if (= n 0) #f (even? (- n 1)))))) (cond ((even? x) 20) ((odd? x) 30) (else 40)))) 4. Type (findout32 10) Output/Error: ;;; Starting a new problem ERROR: In procedure scm-error: Unassigned variable -- LOOKUP-VARIABLE-VALUE odd? Expected Output: 20 All the best, Utkarsh Singh -- Utkarsh Singh https://utkarshsingh.xyz/