Review of Andrei's std.benchmark

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Sep 21 12:59:31 PDT 2012


On 9/19/12 4:11 PM, "Øivind" wrote:
> New question for you :)
>
> To register benchmarks, the 'scheduleForBenchmarking' mixin inserts a
> shared static initializer into the module. If I have a module A and a
> module B, that both depend on eachother, than this will probably not
> work..? The runtime will detect the init cycle and fail with the
> following error:
>
> "Cycle detected between modules with ctors/dtors"
>
> Or am I wrong now?

I think you have discovered a major issue. Ideas on how to attack this?

Andrei


More information about the Digitalmars-d mailing list