Why can't we define re-assignable const reference variable?
Janice Caron
caron800 at googlemail.com
Wed Feb 20 10:52:43 PST 2008
On 20/02/2008, Sergey Gromov <snake.scaly at gmail.com> wrote:
> The traditional usage of parentheses is this: foo(x). This means that a
> function foo is applied to its argument x, and not applied to everything
> else. You are probably talking about some different tradition. Please
> clarify.
Happy to.
It's the exact same tradition, except that the function in question is
called "const", not "foo". It takes a type as it's input (e.g int),
and yeilds a type as its output (in this case const int).
More information about the Digitalmars-d
mailing list