Thread overview
scope classes mentioned in tutorials, but deprecated
Aug 21, 2014
Timothee Cour
Aug 21, 2014
Brad Anderson
Aug 22, 2014
Jacob Carlborg
Aug 22, 2014
bearophile
Aug 22, 2014
Daniel Murphy
Aug 22, 2014
Jacob Carlborg
Aug 22, 2014
Gary Willoughby
August 21, 2014
http://dlang.org/cpptod.html#raii mentions scope class and scope variables, which seem deprecated (http://dlang.org/deprecate.html)


August 21, 2014
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
August 22, 2014
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
August 22, 2014
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
August 22, 2014
"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. 

August 22, 2014
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
August 22, 2014
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!