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) ----------------------------------------------------------------------
