I myself am not fond of prefixes, especially since languages like Java already have "this." when you need to distinguish local vars vs members. Also, modern IDEs highlight fields differently from local variables.
It does make sense however on a project like Android where not everybody is necessarily using an IDE. And it's just a coding convention :) On Sun, Feb 21, 2010 at 10:20 PM, Frank Weiss <[email protected]> wrote: > I'm one of those guys who think scope prefixes, like "m", are more trouble > than they're worth. The fact that you had to explain it to a newbie makes me > smile. > > On Sun, Feb 21, 2010 at 10:04 PM, Romain Guy <[email protected]> wrote: >> >> It stands for "member." I believe the use of an "m" prefix with MFC >> has nothing to do with the name MFC either, but rather to identify >> variables that are class members as opposed to local variables for >> instance. >> >> On Sun, Feb 21, 2010 at 9:52 PM, Christ <[email protected]> wrote: >> > Hi guys, >> > >> > I saw many sample codes that each variable contains the 'm' prefix. I >> > don't know what this m means. >> > I have two-year experience in MFC. Each variable has 'm' prefix to >> > tell you that I'm the one variable of MFC component. (m stands for >> > MFC). >> > So...can anybody answer me this question? >> > >> > >> > Regards, >> > Christ >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Android Developers" group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> > http://groups.google.com/group/android-developers?hl=en >> > >> >> >> >> -- >> Romain Guy >> Android framework engineer >> [email protected] >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. All such questions should be posted on >> public forums, where I and others can see and answer them >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

