Why the need for an only const ref?

Bill Baxter dnewsgroup at billbaxter.com
Mon Dec 3 13:33:02 PST 2007


Janice Caron wrote:
> On Dec 3, 2007 3:05 PM, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
>> I think his point is that private means nothing *within* a module, only
>> between modules.  So if you write your program as one big module with
>> that trick then it's basically like you didn't use it at all.
> 
> Hmm. But it will work even /without/ the word private. That's really
> just there for documentation.

Ah, ok.  I missed that.  So it's the "not-an-lvalue" error you get then?

--bb



More information about the Digitalmars-d mailing list