On Thursday, 11 August 2016 at 17:56:59 UTC, Charles Hixson wrote:
Does anyone know the correct approach?

I do:

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
immutable class Foo
{
    this() {}
}

void main()
{
    auto foo = new immutable(Foo);
}
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°

But take care because you can't do much with an immutable class.

Reply via email to