proc `=destroy`(x: var T)
The other syntaxes will be removed.
Okay, so in Nim v2 we will have a resource management system with a syntax which is valid for heap and stack variables? The roadmap just suggests they should interact. btw. I wasn't concerned about the implementation, since this has to be diffrent, of course.
@Araq I looked all your examples up and none of them have two diffrent syntaxes for stack and heap deallocation. In most of them the use of a destructor/finalizer is highly discouraged, will this be the case for Nim too?