Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
August 21, 2014 scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Attachments:
| http://dlang.org/cpptod.html#raii mentions scope class and scope variables, which seem deprecated (http://dlang.org/deprecate.html) |
August 21, 2014 Re: scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timothee Cour | 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 Re: scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | 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 Re: scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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 Re: scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | "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 Re: scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Murphy | 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 Re: scope classes mentioned in tutorials, but deprecated | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson | 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!
|
Copyright © 1999-2021 by the D Language Foundation