This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Hi everyone, this is unidef
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Unidef <unidef at unidef dot org>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Mon, 8 Jul 2019 16:29:03 +0100
- Subject: Re: Hi everyone, this is unidef
- References: <7D1C0F42-AD8A-4A6B-8A56-EDCC0E3AC122@unidef.org>
On Mon, 8 Jul 2019 at 14:53, Unidef <unidef@unidef.org> wrote:
>
> Is it possible to have c or c++ natively have multi dimensional arrays? Instead of using some bourgeois macro function?
This doesn't seem like a question about GCC development, so is
off-topic on this mailing list.
If you want to know if it's possible with GCC, then you should use the
gcc-help list. If you want to know if it's possible in C or C++
generally, then you should use some other forum dedicated to C and/or
C++.
They do support multidimensional arrays already, but I assume you mean
so you can access them like arr[1,2,3] rather than arr[1][2][3]. The
language grammar doesn't currently allow that, because or the meaning
of the comma operator, but it might be possible one day in C++, see
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1161r2.html
for a proposed step in that direction.
Please take replies to a more appropriate forum.