The future of UDAs.

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Nov 30 06:53:13 PST 2012


On 11/29/12 9:39 PM, Walter Bright wrote:
> On 11/30/2012 1:17 AM, 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.
>
> It's not a complete solution, since using a symbol S from module A does
> not necessarily mean dependency on S being statically constructed in A.
> But it would be a start.

 From what I see it would solve most problems there are out there, 100% 
automatically, without any syntax addition, and without any downside risk.

Andrei


More information about the Digitalmars-d mailing list