Why the need for an only const ref?

Janice Caron caron800 at googlemail.com
Sat Dec 1 22:10:12 PST 2007


On 12/2/07, Janice Caron <caron800 at googlemail.com> wrote:
>     f(Buffer b)
>     {
>         buffer ~= "abc"; // Error
>     }

     f(Buffer b)
     {
         b.buffer ~= "abc"; // Also error :-)
     }



More information about the Digitalmars-d mailing list