Operator overloading, structs
    Andrei Alexandrescu 
    SeeWebsiteForEmail at erdani.org
       
    Thu Jun  4 11:10:58 PDT 2009
    
    
  
Max Samukha wrote:
> On Thu, 04 Jun 2009 10:41:31 -0500, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
> 
> 
>> You are mistakenly presupposing that if() takes a bool. In reality if() 
>> accepts a bool, an integral, a floating-point type, a pointer, an array, 
>> or a class reference.
> 
> or delegate
I was sure I forgot something... and hash too. Anything that can be 
compared against 0 or null.
Andrei
    
    
More information about the Digitalmars-d
mailing list