Generic code: @autoconst, @autopure, @autonothrow

Simen kjaeraas simen.kjaras at gmail.com
Sun Aug 29 12:02:58 PDT 2010


Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote:

> Couldn't you reuse the version statement for that? At least for a
> group of attribute-related functions this might work

Static if, at least. Still, that is the road to extreme code bloat.
Imagine having to write those for all combinations of pure,
nothrow, const/immutable, override, protected/public/package, final,
and synchronized (arguably a constructed situation, but still).

-- 
Simen


More information about the Digitalmars-d mailing list