Sujet : Re: do { quit; } else { }
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 12. Apr 2025, 19:17:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vteaoe$115si$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
User-Agent : Mozilla Thunderbird
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.