@api: One attribute to rule them All

Joseph Rushton Wakeling via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 5 16:09:26 PST 2015


On 06/01/15 00:48, Joseph Rushton Wakeling via Digitalmars-d wrote:
> IMHO if anything like this is to be implemented, the extra flag should be to
> indicate that a function is _not_ intended to be part of the API and that
> therefore it is OK to infer its attributes.

Hmm.  On thinking about this some more, it occurs to me that this might be 
fundamentally about protection.  If it were forbidden to auto-infer attributes 
for a non-templated public function, then quite a few of my objections above 
might go away.


More information about the Digitalmars-d mailing list