This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C2X Proposal, merge '.' and '->' C operators
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Ian Lance Taylor <iant at golang dot org>
- Cc: gcc at gcc dot gnu dot org, J Decker <d3ck0r at gmail dot com>
- Date: Sun, 22 Dec 2019 00:03:57 +0100
- Subject: Re: C2X Proposal, merge '.' and '->' C operators
- References: <CAA2GJqVPWubUcxJpFwS9Lu4vJWMHmZxVp4WSs-igdyOmo7AyAA@mail.gmail.com> <CAKOQZ8xv-K_=1GnyS-uueU+pHRtvg6-mf3qdzaG9ZAmyqwKsXA@mail.gmail.com>
> For what it's worth, that is how Go works. The '.' operator is used
> for struct fields regardless of whether the left hand operand is a
> struct or a pointer to a struct.
Likewise in Ada.
--
Eric Botcazou