[Issue 4730] std.c.stdlib.exit in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 24 16:31:17 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4730



--- Comment #3 from bearophile_hugs at eml.cc 2011-06-24 16:26:25 PDT ---
(In reply to comment #1)

I don't reopen this enhancement request because I trust your judgement, but
here are some answers:

> Marking as INVALID rather WONTFIX, because the bug report doesn't have any use case at all.

Sometimes to debug normal run-time code I add a printf() followed by an exit()
becuse I don't need the computation to continue after the debug print. The
compile-time exit was meant to be used like that, with the compile-time string
print of bug 3952 (that doesn't print a newline after the string).


> consider what would happen if it were called speculatively, eg in a template constraint.

It's an exit(), so it has to stops the whole compiler and the whole compilation
stack.

-- 
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