www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - scope classes mentioned in tutorials, but deprecated

reply Timothee Cour via Digitalmars-d <digitalmars-d puremagic.com> writes:
http://dlang.org/cpptod.html#raii mentions scope class and scope variables,
which seem deprecated (http://dlang.org/deprecate.html)
Aug 21 2014
parent reply "Brad Anderson" <eco gnuk.net> writes:
On Thursday, 21 August 2014 at 17:55:19 UTC, Timothee Cour via 
Digitalmars-d wrote:
 http://dlang.org/cpptod.html#raii mentions scope class and 
 scope variables,
 which seem deprecated (http://dlang.org/deprecate.html)
https://github.com/D-Programming-Language/dlang.org/pull/637
Aug 21 2014
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 21/08/14 20:07, Brad Anderson wrote:
 On Thursday, 21 August 2014 at 17:55:19 UTC, Timothee Cour via
 Digitalmars-d wrote:
 http://dlang.org/cpptod.html#raii mentions scope class and scope
 variables,
 which seem deprecated (http://dlang.org/deprecate.html)
https://github.com/D-Programming-Language/dlang.org/pull/637
How about we undeprecate it instead. If I recall correctly then DDMD depends on it. -- /Jacob Carlborg
Aug 22 2014
next sibling parent "bearophile" <bearophileHUGS lycos.com> writes:
Jacob Carlborg:

 How about we undeprecate it instead. If I recall correctly then 
 DDMD depends on it.
I think the idea is to discourage their usage as much as possible in user code, until (someday, perhaps) some memory area tracking system is implemented. Bye, bearophile
Aug 22 2014
prev sibling parent reply "Daniel Murphy" <yebbliesnospam gmail.com> writes:
"Jacob Carlborg"  wrote in message news:lt6u0n$18mj$1 digitalmars.com...

 How about we undeprecate it instead. If I recall correctly then DDMD 
 depends on it.
It's listed as 'future', so it's not actually deprecated. While DDMD does currently use it extensively, it can be replaced if necessary. I'd much rather see it reinstated along with proper escape checking.
Aug 22 2014
parent Jacob Carlborg <doob me.com> writes:
On 2014-08-22 10:37, Daniel Murphy wrote:

 It's listed as 'future', so it's not actually deprecated.
Everyone is treating it as deprecated.
 While DDMD
 does currently use it extensively, it can be replaced if necessary.  I'd
 much rather see it reinstated along with proper escape checking.
Fair enough. -- /Jacob Carlborg
Aug 22 2014
prev sibling parent "Gary Willoughby" <dev nomad.so> writes:
On Thursday, 21 August 2014 at 18:07:31 UTC, Brad Anderson wrote:
 On Thursday, 21 August 2014 at 17:55:19 UTC, Timothee Cour via 
 Digitalmars-d wrote:
 http://dlang.org/cpptod.html#raii mentions scope class and 
 scope variables,
 which seem deprecated (http://dlang.org/deprecate.html)
https://github.com/D-Programming-Language/dlang.org/pull/637
Didn't know about std.typecons.scoped. Nice!
Aug 22 2014