why ; ?

Bruce Adams tortoise_74 at yeah.who.co.uk
Fri May 9 16:13:27 PDT 2008


On Thu, 08 May 2008 21:43:49 +0100, Michael Neumann <mneumann at ntecs.de>  
wrote:

>
> Yeah, you are right. It is inconsitent to define the instance variable
> with "i" while accessing it with "@i":
>
>    class A {
>      int i;
>
>      void foo(int i) { @i = i; }
>    };
>
> But, then it's no less inconsistent than using "this.i".
>
Perhaps we should insist on using a dollar sign to indicate getting the  
value from a variable?
;-> <cue evil laughter />



More information about the Digitalmars-d mailing list