Const Ideas

Janice Caron caron800 at googlemail.com
Sat Dec 1 11:36:40 PST 2007


On 12/1/07, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> Pointers can be stacked like T***.  References cannot.

You are completely correct, of course. T&& is the same type as T& (or
indeed, T&&&&&&&).

Honestly, I don't mind if we end up with a syntax of

    ref const(X) x; // mutable reference to const data

instead of

    const(X)& x; // mutable reference to const data

Either will make me happy.



More information about the Digitalmars-d mailing list