From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20212 invoked from network); 13 Jun 2023 17:24:34 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2023 17:24:34 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC9307222; Tue, 13 Jun 2023 19:24:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tvzWUNHUMCaX; Tue, 13 Jun 2023 19:23:59 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D63127120; Tue, 13 Jun 2023 19:23:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AE3DD7120 for ; Tue, 13 Jun 2023 19:23:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5aj980EBtKBs for ; Tue, 13 Jun 2023 19:23:55 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.146; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BDD41FF4 for ; Tue, 13 Jun 2023 19:23:55 +0200 (CEST) Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4Qgb4p5Hvqz78 for ; Tue, 13 Jun 2023 17:23:54 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4Qgb4n6g3dz98 for ; Tue, 13 Jun 2023 17:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1686677034; bh=Ysy/jtex/yakuPLdV0iGrONRdgyDE2rfLARaE87GIu8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=RDEhyjYIBGUYjEPOr0cas3hlXcb7x5PGBkv9rrsBq/YaUHV9L0gXfjZxaQLgYfv4r z8cw4FBt+zbJeaOI/b99gI1jHU0oNCvc2T0VzOH6u9vJlPeNU9m/rVAAAU9Dr9j4m9 sWmcrNf3r7IdiuGOm6ujBZfqIQ3XKZFiRM6gtCYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1686677034; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UhQ0a6KdUapNI6MvpcAjqPagUexcMo3UOYGAtmDX21M=; b=xJAcicJ/Lrn5cm0c15UOq28EzTc3cZ9/m8uN8bUexcAcmvuoI/dRjMqElSOJ681VPJn3um OiFZ5P3aldyJOztAtuW0p6H8575IXRlu+23M9o99biRHYk/EQH27RPF3n7PZv+sGBjuFgg nRgdJspDXX06jg2eHVH4pU49N5QbbSc= ARC-Seal: i=1; s=default; d=freedom.nl; t=1686677034; a=rsa-sha256; cv=none; b=P9JfSAPrqARxfXO6R8yajZAhMfdST20vya7BPCdQ31pHtC/4NZcJFNAcgBYLcA/vgzS9E0 hgYdHUszJx02Z15A++WuR71odhwnQ4uhb+ALpL5xPLWPXJo4UeBHGUYnjrly2ccW4DNV2d pZlqKM86IJxIxlsJ8mRK2E3I+kL8TlY= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: Date: Tue, 13 Jun 2023 19:23:51 +0200 MIME-Version: 1.0 Content-Language: en-US To: Hans van der Meer via ntg-context References: <80A4DB81-41CB-4D3D-9A53-09A4DED5E665@ziggo.nl> <09bf23d1-0e29-005b-ad2b-75bc836d299a@freedom.nl> <52D03A0F-C7EE-4AD3-8372-646CEDAD8AEE@ziggo.nl> <2ea4e304-c79c-eaa4-6abf-f1f6897c446f@freedom.nl> X-Soverin-Authenticated: true In-Reply-To: Subject: Re: [NTG-context] letfrozen? X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Hans Hagen via ntg-context Reply-To: mailing list for ConTeXt users Cc: Hans Hagen Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" On 6/13/2023 12:43 PM, Hans van der Meer via ntg-context wrote: > Of course. But without that \enabledirective I can redefine the frozen macro at will, as a simple test did show. > The crux, however, is that one wants to protect the frozen code always, irrespective of that directive setting. there are several caregories, like primitive, permanent, instance, mutable, immutable and frozen at some point we could deepfreeze them all but in the end that makes no sense because then we can't for instance run tikz so in the end it's mostly about warnings and errors (one can actually distinguish between categories) there's also \overloaded and \aliased and \enforced etc of course you can at some point do \newcount\overloadmode but who can predict side effects (and one can argue that tex is progrmamable and that users get what they ask for) and keep in mind that all should also not hit performance too badly there's quite a bit involved here .. pretty all context commands have some kind of flagging and protection (which also is handy for tracing) You can spent hours playing with prefixes: \frozen \permanent \immutable \mutable %primitive \noaligned \instance \untraced \global \tolerant \protected \overloaded \aliased \immediate \deferred \semiprotected \enforced \inherited \constant if you're in the mood. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________