Delegate parameter name shadows type name
    Jacob Carlborg via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Jan  9 23:24:34 PST 2017
    
    
  
On 2017-01-09 20:51, Ali Çehreli wrote:
> Those two syntaxes always confuse me and I'm never sure without trying
> which one to use when. :) However, the code is correct in this case
> because that's a delegate instance.
I agree. When it comes to declaring a delegate type, i.e. a variable or 
function parameter I always think that the syntax is the same as the 
declaring a regular function, but replacing the function name with 
"delegate".
-- 
/Jacob Carlborg
    
    
More information about the Digitalmars-d-learn
mailing list