* Hi everyone, this is unidef @ 2019-07-08 13:53 Unidef 2019-07-08 15:29 ` Jonathan Wakely 0 siblings, 1 reply; 5+ messages in thread From: Unidef @ 2019-07-08 13:53 UTC (permalink / raw) To: gcc Is it possible to have c or c++ natively have multi dimensional arrays? Instead of using some bourgeois macro function? Sent from my iPhone ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hi everyone, this is unidef 2019-07-08 13:53 Hi everyone, this is unidef Unidef @ 2019-07-08 15:29 ` Jonathan Wakely 2019-07-08 20:44 ` Unidef 0 siblings, 1 reply; 5+ messages in thread From: Jonathan Wakely @ 2019-07-08 15:29 UTC (permalink / raw) To: Unidef; +Cc: gcc 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hi everyone, this is unidef 2019-07-08 15:29 ` Jonathan Wakely @ 2019-07-08 20:44 ` Unidef 2019-07-08 21:53 ` Jonathan Wakely 0 siblings, 1 reply; 5+ messages in thread From: Unidef @ 2019-07-08 20:44 UTC (permalink / raw) To: Jonathan Wakely; +Cc: gcc I’m really sorry, I have a medical condition heh But I meant multidimensional functions I think I can do it with pointer function arrays, but let’s say I have a multi dimensional multi directional binary tree (graph) and I set it to a _all struct I want to do secure _all[200][macro] /* etc */ sort(_all Data[etc][])[,,,,]{ // all ai functions return data_index[],,; } I just want the c part to do this, I don’t have time to rewrite the entire collection. How would I implement it in gcc? I don’t really like clang but it’s nice Sent from my iPhone > On Jul 8, 2019, at 8:29 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote: > >> 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 > https://u11118262.ct.sendgrid.net/wf/click?upn=wFa61dLReLL4rLypSmB8qNiwmx6M7DX1N29CRD9e-2BvsOJ3EnQ2tzbe4PrNQ25DomlJRZsTmDU-2BophHKdGmZfOxiXgvaty-2FROjtxLepXEKX4-3D_iaYFtpR3d-2FR9fRvTiX3jMD42Aa63RX3G1cmVpk5p2CVXYiZDaHzVYs5h25jOaNipnFszYaf-2BPfewQQ1dSIjNwwsyLZdHrE0QHtxerVOljmNbrKQrfbsRY-2FU0ZrG5KoIOdZx-2FKERPoGNJku2W6K4sCDEk2ch6En3Xa2LYT6ckmHT1vGqP3Tdz6qgyoDw2NP9HjxTAgecLxhDcu-2F-2Fim0NHfw-3D-3D > for a proposed step in that direction. > > Please take replies to a more appropriate forum. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hi everyone, this is unidef 2019-07-08 20:44 ` Unidef @ 2019-07-08 21:53 ` Jonathan Wakely 2019-07-08 22:17 ` Unidef 0 siblings, 1 reply; 5+ messages in thread From: Jonathan Wakely @ 2019-07-08 21:53 UTC (permalink / raw) To: Unidef; +Cc: gcc On Mon, 8 Jul 2019 at 21:44, Unidef <unidef@unidef.org> wrote: > I’m really sorry, I have a medical condition heh > > But I meant multidimensional functions > This is still the wrong mailing list though. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Hi everyone, this is unidef 2019-07-08 21:53 ` Jonathan Wakely @ 2019-07-08 22:17 ` Unidef 0 siblings, 0 replies; 5+ messages in thread From: Unidef @ 2019-07-08 22:17 UTC (permalink / raw) To: Jonathan Wakely; +Cc: gcc Please take your personal political agenda to private email. This is a mailing list, not your soap box. Saying that I’m unsubscribing and using Linux or geonode as my ai platform. Sent from my iPhone > On Jul 8, 2019, at 2:53 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote: > > > >> On Mon, 8 Jul 2019 at 21:44, Unidef <unidef@unidef.org> wrote: >> I’m really sorry, I have a medical condition heh >> >> But I meant multidimensional functions >> > > This is still the wrong mailing list though. > > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-07-08 22:17 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-07-08 13:53 Hi everyone, this is unidef Unidef 2019-07-08 15:29 ` Jonathan Wakely 2019-07-08 20:44 ` Unidef 2019-07-08 21:53 ` Jonathan Wakely 2019-07-08 22:17 ` Unidef
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).