From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) by sourceware.org (Postfix) with ESMTPS id 434E6384474F for ; Sat, 11 May 2024 00:50:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 434E6384474F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 434E6384474F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a0c:5a00:149::26 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715388620; cv=none; b=HzYk5rAYhqsad44V2vIGR4Iw4S9iWTWwJX4JfLqjRh69Ahm2l7i39NhDTGqZnkQgalni+NBn7RSGcWpCNO2bjndzfgy5tT77OcpIcOlu0Ffy3D9XGGao9SE+klhGga8hfKZurxQrkHbDXiQXvsM0UgrXUW01fHcSAHoqNGpmJYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715388620; c=relaxed/simple; bh=CGM4flK7aWO/RFJWLIb5fX1LmcauXj33k8NLdnr/ZKs=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Q2/4R4Pij65QlMlSxb7cMvenPVhpggP2bdR6fQJnIoP6SpmcTKhsWHtGGtMPqxadegS+UwlggAY9PtPJjKz0E0iLl3XfbutgEz6VME8e5owIKLWIYIAurIOlq7h6WNjr8m4JcmvRQrxt49hhnn79mGb9bDrJ2e3IccWdSA4Sv/o= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1s5awI-005qkk-PF for kawa@sourceware.org; Sat, 11 May 2024 02:50:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=KyudNmEFoGYJXinY6o6zDH8XkLnOArwSQF/CneiuVxE=; b=W7HUen4Sbco9TSZ7l6QrqznVdM 5pgKA0DGunh5yCg0/mICytLlIsW+8Rbp3Vs7jwLtb4ohKyIFpK/T/7B9s/3+DeKJjpoqcaxN9dbP9 bDtObTu7Ee1K7WzgRO77E6eUG4klrIjzx3jCk4e++narmvAnyzQ6NAVE+oBsZNkUM4oSU6u3KDACw IrAK/UGtvDbEBp6zTgGImjPAKf9u1wR08YOZ3fCheFzfX9ICeNr3JRl9FHCKyAT3cknOA+1SrXflL Jl5i7ZRcTKUAPkgkOwRzhlAeFsGBM/Lffu3RV4kY3kPT58n1O0ux286pNrwenwejTfotztd+ETLw/ JPaeIDng==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1s5awA-0001O8-6i; Sat, 11 May 2024 02:50:06 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1s5avx-00EsV0-80; Sat, 11 May 2024 02:49:53 +0200 Message-ID: <7a0d870e-23c0-4e8e-8232-3dc7998e3e73@bothner.com> Date: Fri, 10 May 2024 17:49:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Evaluating definitions from another thread To: Panicz Maciej Godek Cc: kawa References: <9e584c45-8a18-458b-ba2b-0f27450490d7@bothner.com> Content-Language: en-US From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 5/10/24 2:03 PM, Panicz Maciej Godek wrote: > which makes me wonder whether the above behavior (with variables not being bound from other threads) is actually desired? Yes. If a child thread needs to define new variables in the parent thread, you're almost certainly doing something wrong. More generally: Most of the time people use eval, they shouldn't. -- --Per Bothner per@bothner.com http://per.bothner.com/