On Thu, Aug 27, 2009 at 8:17 PM, Walter Bright<newshou...@digitalmars.com> wrote: > Jeremie Pelletier wrote: >> >> Isn't there a way to implement RVO to work on parameters (PVO?) too >> if the storage is const? > > No, and it doesn't work for C++ either. Consider: >
You're addressing the 'const' issue, but you haven't addressed the OP's issue: that 'ref', for whatever reason, prevents inlining. Const aside, why is this so?