const, final, scope function parameters
Myron Alexander
someone at somewhere.com
Sun May 27 15:10:48 PDT 2007
Regan Heath wrote:
> Regan Heath Wrote:
>> Because classes and arrays are reference types and int is a value type I believe this code is legal and does not violate scope.
>
> <snip typo!>
>
>> void foo(A aa, char[] bb, int cc)
>> {
>> aaa = aa;
>> bbb = bb;
>> ccc = cc;
>> }
>
> Gah! Sorry typo there, try these:
>
> //variables in a higher scope
> A aaa;
> char[] bbb;
> int ccc;
>
> Regan
Thanks Regan.
Makes more sense now.
Regards,
Myron.
More information about the Digitalmars-d
mailing list