[Issue 14419] [CTFE] Need infinite loop detection?
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 7 09:34:44 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14419
--- Comment #17 from Jens Bauer <jens-bugzilla at gpio.dk> ---
(In reply to Jens Bauer from comment #16)
> As a fail-safe, an unsigned 32-bit counter could be used as an 'absolutely
> maximum limit'.
... and if the 32-bit counter wraps, then an error message should be given to
the user, for instance: "Error: Please write better code." ;)
--
More information about the Digitalmars-d-bugs
mailing list