Memory safety depends entirely on GC ?
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 24 08:44:13 PST 2015
On 2/24/15 8:34 AM, bearophile wrote:
> Andrei Alexandrescu:
>
>> using stack-allocated arrays in safe code is a rather niche use).
>
> I use stack-allocated arrays in supposedly safe code. And having a
> future D compiler that makes that kind of code actually safe is a good
> thing.
It definitely is a good thing. The question is balancing its goodness
against the costs of allowing it. It's not impossible you may get asked
to change your code to use a struct instead of a fixed-sized array.
Andrei
More information about the Digitalmars-d
mailing list