With statement become like C#'s using?
bearophile
bearophileHUGS at lycos.com
Mon Aug 5 06:11:42 PDT 2013
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
More information about the Digitalmars-d
mailing list