why ; ?
terranium
spam at here.lot
Thu May 8 10:12:41 PDT 2008
Michael Neumann Wrote:
> Another example which leads to hard to read code and potential
> bugs is (ignoring compiler warnings):
>
> class A
> {
> int i;
>
> //
> // add some 25 lines of code here
> //
>
> void foo(int i)
> {
> // what is "i" here?
> }
> }
>
> This is solved in Ruby by using a separate namespace for instance
> variables ("@i" for instance variable "i", and "i" for local variable
> "i").
In C family languages this is ruled out by naming convention.
More information about the Digitalmars-d
mailing list