There's a number of things that currently stop dmd from inlining.
Several exist
as bug reports. I don't recall if there's one about ref return results
or not.
These limitations are certainly worth working to lift, but they're lower
priority than a lot of other bugs. That said, they're the sort of thing
I enjoy
trying to fix, so go ahead and file a nice tiny test case.
As always, if there's issues you care a lot about, the source code for
the
compiler is there for anyone to work with.
As you know inlining is very important for numeric coding, D doesn't have
hints(inline) or constaints, (non standard forceinline)
which is just saying "compiler knows the best" is this always the case?
Thank you!
--
Using Opera's revolutionary email client: http://www.opera.com/mail/