www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13970] New: Simple flow analysis should eliminate null uses

https://issues.dlang.org/show_bug.cgi?id=13970

          Issue ID: 13970
           Summary: Simple flow analysis should eliminate null uses
                    statically
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

See the first snippet in
http://maikklein.github.io/2015/01/11/Evaluating-D-for-games/.

We should do the same amount of flow analysis we do in class constructors
(regarding the call to super()) to emit a compile-time error for using null
references.

--
Jan 12 2015