[Bug 24] Arithmetic operators are allowed on boolean expressions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Mar  9 16:29:37 PST 2006
    
    
  
http://d.puremagic.com/bugzilla/show_bug.cgi?id=24
walter at digitalmars.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
------- Comment #2 from walter at digitalmars.com  2006-03-09 18:29 -------
bool types are implicitly converted to ints when used in arithmetic operations.
This is by design, not a bug. Ints, however, are not implicitly convertible to
bool (unless they are the integer literals 0 or 1).
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list