Do we really need const?

Janice Caron caron800 at googlemail.com
Tue Sep 18 02:23:20 PDT 2007


On 9/18/07, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> This thought has occurred to me before to.  I think issue becomes that
> the function signature may no longer enough for a compiler to tell what
> kind of code it needs to generate to call the function.

That is also true for inline.

I believe the solution for the pass-by-ref vs pass-by-value decision
is that the compiler generates both versions of the function, and then
may throw one of them away at link-time.



More information about the Digitalmars-d mailing list