Deutsch   English   Français   Italiano  
<vteaoe$115si$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!eternal-september.org!.POSTED!not-for-mail
From: bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: do { quit; } else { }
Date: Sat, 12 Apr 2025 19:17:50 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vteaoe$115si$1@dont-email.me>
References: <vspbjh$8dvd$1@dont-email.me> <vt3iqh$2ka99$1@dont-email.me>
 <vt5fed$ccri$1@dont-email.me> <vt5js2$g1t7$1@dont-email.me>
 <20250409142303.00004645@yahoo.com> <87ikndqabc.fsf@nosuchdomain.example.com>
 <20250410115501.000037a5@yahoo.com> <vt8ei8$2vn84$1@dont-email.me>
 <20250410080629.532@kylheku.com> <vt94q5$3jjod$1@dont-email.me>
 <vt9628$3hhr8$3@dont-email.me> <vtammh$174ev$1@dont-email.me>
 <vtavn9$1dp7m$3@dont-email.me> <vtb8nv$1plb2$2@dont-email.me>
 <vtba81$1qfbm$1@dont-email.me> <vtbc6o$1te2o$1@dont-email.me>
 <vtbhjv$24api$1@dont-email.me> <vtbn2k$293r1$1@dont-email.me>
 <vtc19j$2kqlj$1@dont-email.me> <87a58mqt2o.fsf@nosuchdomain.example.com>
 <vtc7mp$2q5hr$1@dont-email.me> <875xjaqmgf.fsf@nosuchdomain.example.com>
 <vtcfhp$325g6$1@dont-email.me> <vtdql9$kspt$1@dont-email.me>
 <vte5o1$umr8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 12 Apr 2025 20:17:50 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="5b5cdf67fe25ae40eb3e543c34a3e4c8";
	logging-data="1087378"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+8/fmSwj+dvP5Psk46uoyg"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:frwGC9PA5hvh0tCvtPWOG9A1yeg=
In-Reply-To: <vte5o1$umr8$1@dont-email.me>
Content-Language: en-GB
Bytes: 2601

On 12/04/2025 17:52, bart wrote:

> With LTR syntax, you can create arbitrarily complex chains, and you will 
> always now exactly what they mean, and which * is which. Modifying them 
> is trivial:
> 
>     C                  LTR style

>     int *(*A)[]        *[]*[]int A         # ptr to array of ptr to int

The comment here doesn't match the LTR typespec; there's an 'array of' 
missing from the comment.

I suspect the C matches the comment (since I had to enter the equivalent 
into CDECL to get the C typespec!).

What's under LTR is the type I wanted, so the correct version is:

   C                 LTR

   int (*(*A)[])[]   *[]*[]int A    # ptr to array of ptr array of int

The first * in LTR I think corresponds to the second * in the C version.