Deutsch   English   Français   Italiano  
<v4jlfs$3d46g$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: Thiago Adams <thiago.adams@gmail.com>
Newsgroups: comp.lang.c
Subject: C23 enums
Date: Sat, 15 Jun 2024 06:04:58 -0300
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <v4jlfs$3d46g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 15 Jun 2024 11:05:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7da0304460ec12fe19c648ee757b196b";
	logging-data="3576016"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/z/a6ySfO0w/VAgQH3urAHrseXOILCIdU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Fnr4LVTzIwAXLOqGAOvj6USWDJg=
Content-Language: en-GB
Bytes: 1055

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;
};