March 14, 2010 [Issue 3963] New: out(result) in contract programming is nan | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3963 Summary: out(result) in contract programming is nan Product: D Version: 2.041 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2010-03-14 15:03:20 PDT --- This program prints "nan" inside the out(result){} import std.stdio: writeln; double sqr(double x) out(result) { writeln("result1: ", result); // prints: result1: nan //assert(result >= 0); } body { return x * x; } void main() { writeln("result2: ", sqr(100)); // prints: result2: 10000 } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 15, 2010 [Issue 3963] out(result) in contract programming is nan | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=3963 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |DUPLICATE --- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-03-15 00:55:49 PDT --- *** This issue has been marked as a duplicate of issue 3667 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation