toHash => pure, nothrow, const, @safe

Walter Bright newshound2 at digitalmars.com
Mon Mar 12 17:50:51 PDT 2012


On 3/12/2012 4:11 AM, deadalnix wrote:
> For struct, we have inference,

? No we don't.

> so most of the time attributes will correct.
> const pure nothrow @safe are something we want, but is it something we want to
> enforce ?

Yes, because they are referred to by TypeInfo, and that's fairly useless if it 
isn't const etc.


More information about the Digitalmars-d mailing list