[Issue 13970] Simple flow analysis should eliminate null uses statically

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 12 08:41:15 PST 2015


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

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc

--- Comment #1 from bearophile_hugs at eml.cc ---
I suggest to not put in Bugzilla links to code located elsewhere, because it
can vanish. The example:

import std.stdio;
import std.typecons;
class Foo(T){
public:
  T i;
}
class Bar{
public:
  int hello = 0;
}

void main()
{
  Foo!(Bar) f;
  int i = f.i.hello;
}

--


More information about the Digitalmars-d-bugs mailing list