Disallow null references in safe code?
Timon Gehr
timon.gehr at gmx.ch
Sun Feb 2 15:44:23 PST 2014
On 02/03/2014 12:09 AM, Andrei Alexandrescu wrote:
>
> A front-end pass could replace the dead dereference with a guard that
> asserts the reference is not null.
I don't think this would be feasible. (The front-end pass would need to
simulate all back-end passes in order to find all the references that
might be proven dead.)
> More generally this is a matter that
> can be fixed but currently is not receiving attention by backend writers.
>
> Andrei
Yup.
More information about the Digitalmars-d
mailing list