www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Situation of "scope"?

reply "bearophile" <bearophileHUGS lycos.com> writes:
What is the situation regarding the implementation of scope" in 
D, Walter? Are there some implementation difficulties that make 
it hard to implement?

- - - - - - - -

Unrelated. Among the most important patches currently worked on, 
there are two by Kenji on fixing one of the largest holes in the 
D module system, and fixing the messy situation of properties:

https://github.com/D-Programming-Language/dmd/pull/2305
https://github.com/D-Programming-Language/dmd/pull/2256

(If those two pull requests are successful, they will be the 
among the most significant improvements in the v2.064 release.)

Bye,
bearophile
Jul 08 2013
parent "deadalnix" <deadalnix gmail.com> writes:
On Tuesday, 9 July 2013 at 00:49:40 UTC, bearophile wrote:
 What is the situation regarding the implementation of scope" in 
 D, Walter? Are there some implementation difficulties that make 
 it hard to implement?

It require to define lifetime of basically everything. This is a difficult task to both implement and define (probably defining is the hardest part). Consider temporary for instance, defining their lifetime is quite difficult especially since their creation can be conditional.
Jul 08 2013