[Issue 4005] New: std.c.stdlib.exit in CTFE and more
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 25 14:43:20 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4005
Summary: std.c.stdlib.exit in CTFE and more
Product: D
Version: future
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at eml.cc 2010-03-25 14:43:18 PDT ---
What's the right behaviour for this program? I think the CTFE has to stop, but
dmd v2.042 doesn't stop to me:
import std.c.stdlib: exit;
int foo() {
exit(1);
return 100;
}
static assert(foo() == 100);
void main() {
assert(foo() == 100);
exit(1);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list