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....@gmail.com> wrote: > >> On Mon, 8 Jul 2019 at 14:53, Unidef <uni...@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.