How do I create a module-local immutable class object?

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Sep 9 14:46:10 PDT 2011


On 9/9/11, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> But make the constructor shared. Otherwise, it gets initialized once per
> thread in spite of the fact that immutable is implicitly shared.

Good call!


More information about the Digitalmars-d-learn mailing list