Do we really need const?

Bill Baxter dnewsgroup at billbaxter.com
Tue Sep 18 04:37:24 PDT 2007


Janice Caron wrote:
> 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.

So the compiler generates 2^N versions for an N-parameter method?

--bb



More information about the Digitalmars-d mailing list