== Quote from bearophile ([email protected])'s article
> dsimcha:
> >I think you're right, strange as it seems.  I wonder why ref is never 
> >inlined.<
> Do you want something like a forced_inline attribute in D? :-)
> Bye,
> bearophile

No, actually, I like the idea of leaving these small micro-optimizations to the
compiler.  It's just that I can't figure out what's special about functions that
take ref parameters.  Maybe there is a good reason for this behavior.  I don't
know.  It's just that if there is a good reason, I can't think of it.

Also, if you really, really, _really_ want to force a function to be inlined, 
you
can probably simulate this with templates or mixins or something.  IMHO wanting 
to
absolutely insist that something be inlined is too much of an edge case to have
pretty syntax and special language constructs for.

Reply via email to