Deutsch   English   Français   Italiano  
<vt9544$3hhr8$2@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!eternal-september.org!.POSTED!not-for-mail
From: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: do { quit; } else { }
Date: Thu, 10 Apr 2025 20:11:01 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <vt9544$3hhr8$2@dont-email.me>
References: <vspbjh$8dvd$1@dont-email.me> <8634enhcui.fsf@linuxsc.com>
 <vsph6b$ce6m$5@dont-email.me> <86ldsdfocs.fsf@linuxsc.com>
 <20250406161323.00005809@yahoo.com> <86ecy5fjin.fsf@linuxsc.com>
 <20250406190321.000001dc@yahoo.com> <86plhodtsw.fsf@linuxsc.com>
 <20250407210248.00006457@yahoo.com> <vt15lq$bjs0$3@dont-email.me>
 <vt2lp6$1qtjd$1@dont-email.me> <vt31m5$2513i$1@dont-email.me>
 <vt3d4g$2djqe$1@dont-email.me> <vt3iqh$2ka99$1@dont-email.me>
 <868qoaeezc.fsf@linuxsc.com> <vt3oeo$2oq3p$1@dont-email.me>
 <86mscqcpy1.fsf@linuxsc.com> <vt48go$35hh3$2@dont-email.me>
 <86iknecjz8.fsf@linuxsc.com> <vt4del$3a9sk$1@dont-email.me>
 <86o6x5at05.fsf@linuxsc.com> <vt712u$1m84p$1@dont-email.me>
 <20250409170901.947@kylheku.com> <vt88bk$2rv8r$1@dont-email.me>
 <20250410092409.825@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Apr 2025 21:11:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d4d34b1d7ed35db6137f2b3fedef19a1";
	logging-data="3721064"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX183uiBcRjffJijCBUfaSYlL"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:r/QFClyY/I4KkgkHr43AD/sLSWQ=
Content-Language: en-GB
In-Reply-To: <20250410092409.825@kylheku.com>
Bytes: 2708

On 10/04/2025 17:51, Kaz Kylheku wrote:
> On 2025-04-10, bart <bc@freeuk.com> wrote:

>> In my C compiler, each type has a unique index which is what is compared
>> to see if two types are the same type. It has nothing to do with tags.
> 
> How can it not?
> 
>    struct tag;
>    struct tag { ... };
> 
> these have to refer to the same type; how do you do that without tags?

The type can be denoted in the source code using 'struct tag'. Looking 
'tag' up in the ST, checking only names belonging to the special tag 
namespace, will yield an entry that has its type index, whatever that 
happens to be.

But the tag is not what is used when comparing two types. It is just an 
anachronistic concept that C still needs.

(In C++ I understand that special tag namespaces don't exist, they are 
just part of the normal namespace.

And in my languages they have never been a concept, yet I can still 
compare one struct type with another.)