[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define anywhere
From: |
Taylan Kammer |
Subject: |
Re: define anywhere |
Date: |
Sat, 5 Jun 2021 04:10:12 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 |
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