What is the difference? (D2)
torhu
no at spam.invalid
Mon Jul 28 15:26:25 PDT 2008
Dave B. wrote:
> Using them as parameter modifiers in functions, what is the difference
> between "in", "const" and "final"?
>
> e.g.
>
> void func(final int i)
> {...}
>
> vs
>
> void func(in int i)
> {...}
>
> vs
>
> void func(const int i)
> {...}
>
> Thanks
Currently, I think that 'const' and 'in' are the same. While 'final' is
not implemented, and I can't recall what it was supposed to do.
More information about the Digitalmars-d
mailing list