e.g A is a class that emits output during destruction
{
    auto a = scoped!A();
}

how do I contain it in a container, in the Array struct ?

{
    auto a = scoped!A();
    Array!( typeof( a ) ) arr;
    foreach( i ; 0..3 ) {
        arr.insertBack( scoped!A );
    }
}

is that how you do it ?

Reply via email to