Generic code: @autoconst, @autopure, @autonothrow

Nick Sabalausky a at a.a
Sat Aug 28 21:50:43 PDT 2010


"Rainer Deyke" <rainerd at eldwood.com> wrote in message 
news:i5cogl$31j9$1 at digitalmars.com...
> On 8/28/2010 22:33, dsimcha wrote:
>>> Is there any real reason why we can't apply these modifiers
>>> automatically to all functions?  (And by "real" I don't mean "it would
>>> be hard to do" or "it is incompatible with the archaic compilation model
>>> chosen by one D implementation".)
>>
>> Two reasons:
>>
>> 1.  Unless the function is a template, the compiler isn't guaranteed to 
>> have the
>> source available.  What if it's a binary-only library?
>
> "It is incompatible with the archaic compilation model chosen by one D
> implementation."
>
> This special treatment of templates has got to end.
>

I assume you mean "This special treatment of binary-only libraries has got 
to end"? If so, I agree.





More information about the Digitalmars-d mailing list