On Monday, 5 August 2013 at 13:11:44 UTC, bearophile wrote:
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
It's not a feature I've ever had the need for so far, but what is
the replacement for scope?