18.04.2010, 18:12
I don't understand why you complain about an "_" underscore infront of the variable name determining that its an local variable. Thats a habit of many programmers and is nothing new. Everybody may do it the way they want. There are ways to indicate it being the variable of the class itself if considered coding it in OOP. So people started using a "_" underscore to define a local variable. Lets give you an example in java as its the most easiest language to understand.
So after all I dont see a problem. You don't have a problem with it either and NOTHING has to get on your nerves as you dont even have to care how its handled.
Код:
public class HelloWorldWithVariable { int x; public static void main(String arg[]) { SayIt("Hello World", 0); } public void SayIt(String str, int _x) { x = _x; System.out.println(str); } public void SayItEx(String str, int x) { this.x = x; System.out.println(str); } }