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

2018-06-16 Thread Steven Schveighoffer via Digitalmars-d
On 6/15/18 6:55 PM, 12345swordy wrote: 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

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

2018-06-15 Thread 12345swordy via Digitalmars-d
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.