"The last feature": scope structs

Leandro Lucarella llucax at gmail.com
Sat Feb 13 20:33:50 PST 2010


Walter Bright, el 13 de febrero a las 19:13 me escribiste:
> bearophile wrote:
> >Andrei Alexandrescu:
> >>Scope classes will be eliminated from the language.
> >
> >Isn't it better to remove scope classes after a good escape analysis
> >is implemented in the front-end?
> 
> Escape analysis can still be used to put class instantiations on the
> stack - it's just that that will be a compiler optimization, not a
> user one.

LDC already have some heuristics for that:
http://www.dsource.org/projects/ldc/browser/gen/passes/GarbageCollect2Stack.cpp


-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------



More information about the Digitalmars-d mailing list