From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: define anywhere Date: Sat, 5 Jun 2021 04:10:12 +0200 Message-ID: <4b467d1c-284a-7881-0662-cd68aa0ac503@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25162"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 To: Damien Mattei , guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Jun 05 04:10:36 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 1lpLlk-0006JN-HA for guile-user@m.gmane-mx.org; Sat, 05 Jun 2021 04:10:36 +0200 Original-Received: from localhost ([::1]:36382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpLli-00076v-Vw for guile-user@m.gmane-mx.org; Fri, 04 Jun 2021 22:10:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpLlV-00076j-C3 for guile-user@gnu.org; Fri, 04 Jun 2021 22:10:21 -0400 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:44021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lpLlR-0003II-7M for guile-user@gnu.org; Fri, 04 Jun 2021 22:10:21 -0400 Original-Received: by mail-ej1-x62f.google.com with SMTP id ci15so17239736ejc.10 for ; Fri, 04 Jun 2021 19:10:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=9krV5xUmEJQNtWmqOBNbodlE98MLCH5DuL9D0V82svs=; b=d2TKS60W/MwNDELLtLAQwRrQR+/B+Aepfb5TlfOKd0quXigkXyHSFus6SRc1mcJIHS FdxeQpk1umgJJLgpEEpLXzquK1efPFXLTrmo9Wlsft2LgSEEoF2nFupqukhpfM4wfuCm Quoi4inW6TR6LSlQWL6ZNu44HVI+fZwVMvQnx5ileNDgc8HClNwhb/KivmORrvRvmK0B S00dRB4i9tgdJEtSWMuoPNB1eo3MKgn7kUHEMG1wE1ON3GqlaxncI8JcRMCwiQEZPYB3 e0YklPlgsKWC10EPUFL8Tq0S6jHFs878NiapvmYvn51U8vbhgheD8rWzeKuVa3LKDX/O mhqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9krV5xUmEJQNtWmqOBNbodlE98MLCH5DuL9D0V82svs=; b=XOObSkeEj6fosJJeLIyyXbDWaM0kJvnjY1eTFK5thThjiKOHyKi3DpdRF0C1IfF90M eygpPTxgok61PKgTcjMHvB7wTmVKvKjHVFLFByDu38NxQkpe2CwWP5kAxQSWzXvfrCuP HNgqSCMrXVI5ifM3g14gU64NrqnJdhgcOolbN4uZ7YlPDUiDVb6ydCMPn0Xp1KyWiIz/ 80OQiF41+8+FhMW9wyJfb+eKBZBzISpGZnstx9Vpr25uB52mAzB7FQuNnhFEq1vrgFQQ HckpN4o+yF2x1gD+X/KHmxsy1jC2zlFb5T1PHpwl1spxzsag6FlpQVbwgMvsWqrU1zVo 2ijA== X-Gm-Message-State: AOAM531ODObkxRMXteerrI9fiwTov9lfh/U/AtlPB0HPsZp0Vhf/EoNN /cFP/381/uKARzIGk3LDNUC1bWF7Tf9E4Q== X-Google-Smtp-Source: ABdhPJyS6VAuWap3FOpY8oFjhTU08t2EL94DPPnGJM11R9e0etj2k6zd4mhmJK3Ckscq2xjGN6r/jg== X-Received: by 2002:a17:906:af7b:: with SMTP id os27mr7082795ejb.154.1622859014552; Fri, 04 Jun 2021 19:10:14 -0700 (PDT) Original-Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id s2sm4120934edu.89.2021.06.04.19.10.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Jun 2021 19:10:14 -0700 (PDT) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=taylan.kammer@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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, NICE_REPLY_A=-0.59, 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-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:17575 Archived-At: On 05.06.2021 00:27, Damien Mattei wrote: > hello, > i'm was considering that i want to be able to define a variable anywhere in > code, the way Python do. Few scheme can do that (Bigloo i know) > ( the list here is not exact: > https://www.reddit.com/r/scheme/comments/b73fdz/placement_of_define_inside_lambda_bodies_in/ > ) > is it possible in guile to do it? i do not know, so could it be added to > the language specification for future release? > > regards, > Damien > It's possible since 3.0, see here: https://www.gnu.org/software/guile/manual/html_node/Internal-Definitions.html#Internal-Definitions -- Taylan