Deutsch English Français Italiano |
<v4rbaa$17q05$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.c Subject: Re: C23 enums Date: Tue, 18 Jun 2024 07:00:27 -0000 (UTC) Organization: A noiseless patient Spider Lines: 12 Message-ID: <v4rbaa$17q05$1@dont-email.me> References: <v4jlfs$3d46g$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 18 Jun 2024 09:00:27 +0200 (CEST) Injection-Info: dont-email.me; posting-host="aa8085ada8e9493580a5b327f88f4c87"; logging-data="1304581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UjkYA+PQhoHDpxgKUgGI/" User-Agent: Pan/0.158 (Avdiivka; ) Cancel-Lock: sha1:Le/6B2E/Ew/iCBxa9Ey+koGRu4c= Bytes: 1168 On Sat, 15 Jun 2024 06:04:58 -0300, Thiago Adams wrote: > I realized we can have "private" enums in C23, because they are > completed types. Values of E does not need to be at header file. > > enum E : int; > > struct X{ > enum E e; > }; What would be the point of this?