The future of UDAs.

Jacob Carlborg doob at me.com
Thu Nov 29 07:16:30 PST 2012


On 2012-11-29 15:17, Andrei Alexandrescu wrote:

> A possibly better approach would be e.g. to do a simple analysis of the
> static constructor's use of symbols, and use that set to decide whether
> two static constructors must be ordered or not.

Of course, that would be the preferred choice. But if you write a static 
constructor that has no dependencies. Then you make some changes that 
accidentally introduce dependencies. There are reasons why "pure", 
"const" and so on are not automatically inferred, even if they could.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list