| Deutsch English Français Italiano |
|
<1033nld$1qj6$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Rich <rich@example.invalid>
Newsgroups: comp.lang.tcl
Subject: Re: Are class consts possible?
Date: Fri, 20 Jun 2025 13:28:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <1033nld$1qj6$1@dont-email.me>
References: <10334bd$l3lq$1@dont-email.me>
Injection-Date: Fri, 20 Jun 2025 15:28:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c7a1360864bf983287b49e49c4e6196e";
logging-data="60006"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18EPrpjxUlGkb6ZSnUPBYEm"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:ml4kaF9IvuhxxlJozlVu5K1gcSA=
Mark Summerfield <m.n.summerfield@gmail.com> wrote:
> Is it possible to create class-specific consts i.e., consts that exist
> inside a class's namespace?
>
Tcl does not have "constants" in the vien of other languages
"constants".
However, there are several ways to "roll your own":
https://wiki.tcl-lang.org/page/constants