const
Denton Cockburn
diboss at hotmail.com
Fri Mar 28 11:29:25 PDT 2008
On Fri, 28 Mar 2008 17:10:18 +0000, Janice Caron wrote:
> My rationale is that in is already used in this context, but currently
> only for function parameters. That is, currently
>
> int f(const T x);
> int f(in T x);
>
> are identical. (Or at least, if they're not identical, I don't
> understand the difference).
I've been trying to figure out the difference for a while now.
I started 2 threads on D newsgroups...neither of which provided a
reasonable response. I still would like to see a good explanation of why
we have 2 keywords that do the exact same thing (esp. when one has no
other purpose - in).
More information about the Digitalmars-d
mailing list