www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - in and out code in release build

Hi,

The documentation online says: "For a release build of the code, the in and out
code is not inserted."

Although this statement appears to be true, you might be interested to know that
the following won't compile in release mode...

       void f()
       in
       {
           g();
       }
       body
       {
       }

       debug void g()
       {
       }

The compiler complains about g() not being defined on line 4. But why is the compiler looking at that line in during a release build? Arcane Jill
May 27 2004