DIP69 - Implement scope for escape proof references
Shammah Chancellor via Digitalmars-d
digitalmars-d at puremagic.com
Wed Dec 10 23:06:13 PST 2014
On 2014-12-04 10:00:28 +0000, Walter Bright said:
> On 12/4/2014 1:51 AM, eles wrote:
>> On Thursday, 4 December 2014 at 09:25:11 UTC, Walter Bright wrote:
>>> http://wiki.dlang.org/DIP69
>>>
>>> Despite its length, this is a fairly simple proposal. It adds the missing
>>> semantics for the 'scope' storage class in order to make it possible to pass a
>>> reference to a function without it being possible for it to escape.
>>
>> Making it implicit and requiring an explicit "escape" for un-scoped variables?
>>
>
> Was afraid that would break too much code.
No, this is super important. Break it all! This kind of change will
significantly increase the performance of D code by almost eliminating
GC thrashing.
Having to type scope EVERYWHERE will make it unused and therefore
unusable in other people's libraries.
-Shammah.
More information about the Digitalmars-d
mailing list