C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] (SC22WG14.18841) [Fwd: sudo buffer overlow]

From: Uecker, Martin <Martin.Uecker_at_[hidden]>
Date: Sat, 30 Jan 2021 13:56:37 +0000
Am Donnerstag, den 28.01.2021, 22:48 +0100 schrieb Martin Uecker:
.
>
> > > 3. And finally there is the problem that C++ does not
> > > have them.
> >
> > Once upon a time, the C++ committee spent quite some effort
> > on integrating VLAs.
> >
> > The history section in this paper
> > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0785r0.html
> > is probably a good start.
>
> Thanks.

I tried to look deeper on this, but to be honest I did not
fully understand why this went nowhere in C++.

To me VLA in C seem conceptually quite simple and powerful.
I use them a lot in numerical code and they are extremely
useful. There are theoretically sound (in contrast to some
other language aspects related to UB) and also reasonably
easy to implement in compilers (I did this myself last
year in my toy C compiler). So why not just take the
C feature as is?

It would be helpful if someone could summarize the problems
that make it difficult or undesirable to integrate this
fully into C++.

Best,
Martin








Received on 2021-01-30 07:56:43