Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Action script coding standards

I am very good java script developer, but newbie to flash. I have started learning action script. I am reading code snippets at many places. I found that variable names starting with m_Variable_Name or _Variable_name. What does that mean when it starts with m_ or _ ? Can anyone throw a light on coding standard?

Sample code :

 public class Person implements IPerson
 {
  private var m_name:String;

  public function get name():String
  {
   return m_name;
  }

  public function set name(value:String):void
  {
   m_name = value;
  } 
 }
like image 591
Umesh Patil Avatar asked Dec 04 '22 04:12

Umesh Patil


2 Answers

Here are Adobe Coding Conventions.

Some people use m_ or _ to prefix member variables to distinguish them from local variables.

like image 172
sch Avatar answered Dec 31 '22 08:12

sch


prefixes m_ is used as a prefix for member variables.

like image 27
Jordan Avatar answered Dec 31 '22 08:12

Jordan