toHash => pure, nothrow, const, @safe

Walter Bright newshound2 at digitalmars.com
Mon Mar 12 02:40:16 PDT 2012


On 3/12/2012 1:08 AM, Martin Nowak wrote:
> What's wrong with auto-inference. Inferred attributes are only strengthening
> guarantees.

Auto-inference is currently done for lambdas and template functions - why? - 
because the function's implementation is guaranteed to be visible to the 
compiler. For other functions, not so, and so the attributes must be part of the 
function signature.


More information about the Digitalmars-d mailing list