Mitigating the attribute proliferation - attribute inference for functions

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 12 11:26:32 PDT 2015


On 4/12/2015 2:55 AM, Martin Nowak wrote:
> On Sunday, 12 April 2015 at 08:55:17 UTC, Walter Bright wrote:
>> There's still an issue of a private function being called by a template, and
>> the definition of that private function is compiled separately.
>
> That's the problem of the author of that template. He would still have to
> annotate that private function manually like today.

Keeping them in sync could be a problem, as the time errors are seen would be at 
link time.

> But everything called by that function doesn't need to be attributed.



More information about the Digitalmars-d mailing list