Michal Minich:
void foo ()
{
scope obj = new Object;
} // obj will be destructed here
That usage of scope has being deprecated...
For Walter: I suggest dmd to give a deprecation message where you
use one of the many deprecated D features, like scope classes,
floating point comparison operators, and so on. Otherwise D
programmers will use those featueres in their code today, and
when those feature become deprecated, those people will become
angry because of too much code to modify/fix.
Bye,
bearophile