[Plugin] [REL] Functions
#11

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.

Код:
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);
  }
}
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.
Reply


Messages In This Thread
[REL] Functions - by Carlton - 05.04.2010, 15:27
Re: [REL] Functions - by Carlton - 05.04.2010, 18:47
Re: [REL] Functions - by MJ! - 06.04.2010, 10:49
Re: [REL] Functions - by Carlton - 06.04.2010, 12:43
Re: [REL] Functions - by Mina - 06.04.2010, 12:49
Re: [REL] Functions - by Carlton - 06.04.2010, 13:03
Re: [REL] Functions - by Mina - 06.04.2010, 13:20
Re: [REL] Functions - by Carlton - 06.04.2010, 13:28
Re: [REL] Functions - by Mina - 06.04.2010, 13:30
Re: [REL] Functions - by Mina - 06.04.2010, 13:42
Re: [REL] Functions - by Extremo - 18.04.2010, 18:12
Re: [REL] Functions - by Silent.Hunter - 25.05.2010, 14:49
Re: [REL] Functions - by [L3th4l] - 31.07.2010, 11:14
Re: [REL] Functions - by Carlton - 31.07.2010, 15:19
Re: [REL] Functions - by [03]Garsino - 31.07.2010, 15:59
Re: [REL] Functions - by Calgon - 31.07.2010, 18:43
Re: [REL] Functions - by Carlton - 31.07.2010, 19:23
Re: [REL] Functions - by Miguel - 01.10.2010, 17:05
Re: [REL] Functions - by s1cr0n - 17.11.2010, 23:37
Re: [REL] Functions - by Grim_ - 18.11.2010, 01:07
Re: [REL] Functions - by ViruZZzZ_ChiLLL - 19.11.2010, 20:41
Re: [REL] Functions - by Grim_ - 19.11.2010, 21:15
Re: [REL] Functions - by ViruZZzZ_ChiLLL - 19.11.2010, 21:38
Re: [REL] Functions - by AlExAlExAlEx - 04.02.2011, 07:14
Re: [REL] Functions - by Steven Paul - 04.02.2011, 13:19
Re: [REL] Functions - by Gamer_Z - 04.02.2011, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)