Re: Automatic attribute inference of functions

2013-05-31 Thread Sebastian Graf
On Thursday, 30 May 2013 at 20:49:53 UTC, Steven Schveighoffer wrote: It's actually 4. separate compilation model. If you are building a module, and it imports a d interface file which has no function body, there is no conceivable way to tell what the attributes should be. For anonymous fu

Re: Automatic attribute inference of functions

2013-05-30 Thread Steven Schveighoffer
On Thu, 30 May 2013 16:24:35 -0400, Sebastian Graf wrote: Hi, I wonder if there are any plans to allow automatic inference of function attributes. I think it's a big hassle having to pollute function declarations with things like @safe, nothrow, pure, etc. let alone rembering them all.

Automatic attribute inference of functions

2013-05-30 Thread Sebastian Graf
Hi, I wonder if there are any plans to allow automatic inference of function attributes. I think it's a big hassle having to pollute function declarations with things like @safe, nothrow, pure, etc. let alone rembering them all. I know this is done for anonymous functions on a best effort bas