From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Abou Samra Newsgroups: gmane.lisp.guile.user Subject: Why does compile discard multiple values? Date: Wed, 10 Aug 2022 15:01:00 +0200 Message-ID: <9f083148-6764-5943-9042-665e2b1c6099@abou-samra.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36260"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Aug 10 15:11:02 2022 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 1oLlUE-0009Is-7G for guile-user@m.gmane-mx.org; Wed, 10 Aug 2022 15:11:02 +0200 Original-Received: from localhost ([::1]:57728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLlUD-0001B2-4g for guile-user@m.gmane-mx.org; Wed, 10 Aug 2022 09:11:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLlKg-0005g7-8Y for guile-user@gnu.org; Wed, 10 Aug 2022 09:01:10 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.134]:57841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLlKa-0001VU-Gl for guile-user@gnu.org; Wed, 10 Aug 2022 09:01:09 -0400 Original-Received: from [192.168.1.46] ([82.65.251.18]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.168]) with ESMTPSA (Nemesis) id 1N3suW-1nM42Y0HJ2-00zoDk for ; Wed, 10 Aug 2022 15:01:02 +0200 Content-Language: en-US X-Provags-ID: V03:K1:Dpw1kSMsNITGqo6uO72jVBU5GXvf3IFvzvnt8Aj610z8avU68nI WadMhKShME56ofU0r/wPSLWQ6/hS08n3kJu8xCtX/s7YMKseHJmdUVK23Wr0H2gaJHi6mT1 0U2jCUpfHT0yxy5W5pcXRn2lV3Id8ydETXTdIy7dRAemDybhavLs4Gk3UBMlwxFR+BpccQ0 XhD3dhMrl4qczsLDEKyhQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:x0IKHIGMSj4=:9X80vpIBWT/LS7cOFC/Hz9 i2iQ1nq2QTPB584pjVELjLqFW0gWqUCBZ2UJn4NO3+REZVU4KHYavlq9o1uaEr9INj7kZxL7d NG10ZpNrSLonoa0SuDk+zCcTYCZi11wogyTD2YuPYoIu9hiApLGoSv1vBhwFPygjfax8h0TZ7 /vwPcDYByRkhveGfKa5curq7hIuKFJibHoVXOvhle0k0AnUjHZF6Ffmtk/q/1RKBart4fgCQx 0FUjPFy0HJPOzJATNQrnWVLuwR5pjgUxhAStYqF0OM4Tzpr/5t7ga2xJqwdLHQs3Ae5VGr/Dt L5IH1FP1Rzc/OeN43/BNE/VF26Nst2F4RwtpiCxGeFCsmcBuhWKJLezR1aixTvwxEgXF+KC7r VJgG8R0DPbdJiLNjG4f737x+63OsT2/zSyVXAlCKKWlI+oq59hbaDRx9c+gqEwU3a4WGmDNpf /c3VUdSAtyEgqs4fU/lW6VU8JP5O1c1bbGbPFLwKZ0k6uFdQkQ9NMwuRd8LZ1qfcxtHISmJjD uzCAR6mtuJNgfpVF80rbmY0qU3mnr04T6bz4AtM/xftbqlD908MLgy5jF+KwS7bs1AnYoZz6i eBWsd9SktkPf+7FrSUxieQYqClCUKVHbTBDdgvIc3BZn6dNey1BzO/M+RzXPFIzPFsYw+5VFd Oeo+r1ZvpIpc2uzuC57KhYZfx83qaKgkx+9JcGcsNjnB7P/K1LtM0RDO8ks9M9UMBXxXb0nhX tmW/PfcjsNM1aL9U8wzHxPHvINTwYNKnTrq5Mw== Received-SPF: none client-ip=212.227.126.134; envelope-from=jean@abou-samra.fr; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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" Xref: news.gmane.io gmane.lisp.guile.user:18509 Archived-At: Hi, See: $ guile3.0 GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (eval '(values 1 2) (current-module)) $1 = 1 $2 = 2 scheme@(guile-user)> (use-modules (system base compile)) scheme@(guile-user)> (compile '(values 1 2) #:env (current-module)) $3 = 1 Is it expected that compile doesn't cope with a return of multiple values? I can work around that using ((compile `(lambda () ,my-form)           #:env (current-module))) but I would have expected it to work out of the box. Should I raise it on the bug tracker? Thanks, Jean