Detect the bug in the following code
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 15 07:46:55 PDT 2015
On Wednesday, 15 April 2015 at 14:44:48 UTC, Idan Arye wrote:
> register = true;
Easy, you assigned to the wrong variable, that'd quickly be
obvious at runtime too with a stack overflow.
I think it sucks that true and false will implicitly convert to
int though, that bites people somewhat often. I wonder how much
annoyance it would be to remove that implicit conversion.
More information about the Digitalmars-d
mailing list