scope escaping

Elie Morisse syniurge at gmail.com
Thu Feb 6 11:24:17 PST 2014


On Thursday, 6 February 2014 at 15:53:01 UTC, Adam D. Ruppe wrote:
>
> Making scope the default
>

How about letting the compiler decide what's best in the default 
case?

  · if a global reference to the variable espaces or a reference 
is returned by a function ⇒ GC-allocated
  · otherwise ⇒ scoped to where the last reference to the variable 
is seen by static analysis


More information about the Digitalmars-d mailing list