Opt-in non-null class references?

Jacob Carlborg doob at me.com
Fri Mar 2 07:35:23 UTC 2018


On Wednesday, 28 February 2018 at 23:58:44 UTC, Jonathan M Davis 
wrote:
> he's stated that dmd's optimizer uses code-flow analysis for 
> some stuff, but for anything that involves putting it in the 
> frontend where the behavior would have to be encoded in the 
> spec, he's been against it.

The compiler can actually detect simple cases of null 
dereferences if optimizations are turned on, "-O", due to the 
optimizer using flow analysis.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list