Walter Bright: > bearophile wrote: > > I meant that D seems designed to not assume that the back-end is able to > > inline delegates, and indeed at the moment usually not even LLVM is able to > > do it (while Scala compiler is able to often perform this optimization, and > > gives the JavaVM code already optimized in this regard). > > D does inlining entirely in the front end.
I think LDC has totally disabled the inlining of the front-end and uses just the LLVM inliner, because despite it unfortunately has less semantics to work with, it gives better results anyway. Bye, bearophile
