One very serious danger with using alloca is that alloca interferes with
tail-call
optimization. After debugging code using alloca a couple times, I would be
really
hard pressed to every use alloca again.
On Saturday, February 23, 2019 at 6:24:24 AM UTC-5, Artyom Shalkhakov wrote:
>
> Hi
Hi Vanessa!
On Saturday, February 23, 2019 at 1:11:31 PM UTC+2, Vanessa McHale wrote:
>
> Is there any way to safely use alloca in ATS? I know the language has
> features for both safe pointer arithmetic and safe use of
> stack-allocated variables... so it would be nice to both guarantee no
>
Is there any way to safely use alloca in ATS? I know the language has
features for both safe pointer arithmetic and safe use of
stack-allocated variables... so it would be nice to both guarantee no
out-of-bounds array accesses and no subsequent uses of the pointer.
Cheers,
Vanessa McHale
--