Wouldn't it be far fetch for finalize to be allowed to call only attrubutes in certain context?

12345swordy alexanderheistermann at gmail.com
Fri Jun 15 22:55:34 UTC 2018


Example:
@nogc void stuff()
{
  A.destroy(); //Call destructors that is marked with @nogc due to 
being in context
}
Granted there is a risk of not calling all the destructors, but I 
think that responsibility lies on the programmer when designing 
the class.


More information about the Digitalmars-d mailing list