----- Original Message -----
> Segfaults? That is surprising. What's wrong with doing what we do now
> (in terms of safety)?
>
Currently we zero out locals at the declaration site, which means that with
silly code like:
{
x = ...;
// do things with x
let x;
// do other things with x
}
we will zero the x at the "let x;". I think the actual failure we ran into was
that when it got zeroed, it caused the variable to not get cleaned up properly.
Eric was writing code like this as a protest and tripped over it.
It's a bug, but I maintain that the real problem is that the program is allowed.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev