Re: Stack-allocated arrays in ATS2 (or ATS3?)

2019-03-01 Thread gmhwxi
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

Re: Stack-allocated arrays in ATS2 (or ATS3?)

2019-02-23 Thread Artyom Shalkhakov
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 >

Stack-allocated arrays in ATS2 (or ATS3?)

2019-02-23 Thread Vanessa McHale
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 --