Mitigating the attribute proliferation - attribute inference for functions

extrawurst via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 17 12:45:50 PDT 2015


On Friday, 17 July 2015 at 18:23:58 UTC, jmh530 wrote:
> On Friday, 17 July 2015 at 16:40:56 UTC, Jonathan M Davis wrote:
>> [...]
>
> Not being a fan of constantly writing these attributes, I had 
> been thinking a month or so ago that it would be cool if you 
> could just specify defaults for the function attributes on a 
> module-by-module basis. However, it's pretty easy to just set 
> something similar up using the existing language features.
>
> [...]

also pretty useful:

@safe:
...


More information about the Digitalmars-d mailing list