class A
{
A(){ output( "CON" ); }
~A(){ output( "DES" ); }
}
void startGame( string ¶m )
{
A a;
}
output:
CON
DES
Ok, next code:
class A1{ }
class A
{
A(){ output( "CON" ); }
~A(){ output( "DES" ); }
A1 @en;
}
void startGame( string ¶m )
{
A a;
}
output:
CON
why not execute destructor ?