▲ | sirwhinesalot 4 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
Contracts getting proposed but still no slice/span type or even standardization of that new clang feature that makes f(int n, int a[n]) Actually do what it looks like it does. Sigh | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | veltas 4 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
You can do f(int n, int (*a)[n]) and it does what it looks like, since C99. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | uecker 2 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
You can just define a span type yourself: https://uecker.codeberg.page/2025-07-02.html What new clang feature are you talking about? | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | WalterBright 4 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
https://www.digitalmars.com/articles/C-biggest-mistake.html You're welcome! | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | miropalmu 4 days ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
What do you mean no slice/span type? https://en.cppreference.com/w/cpp/container/span.html Or if you want multidimensional span: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | pjmlp 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Strange are the ways of security in WG14. |