[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Getters, Setters and member prefix.
|
Also, its annoying that it suggests to generate getters and setters to
constants (public final static).
thats actually a bug, coz you can't set a constant..
"Omry Yadan" <omry_y@xxxxxxxxxxxx> wrote in message
news:akcuk5$ota$1@xxxxxxxxxxxxxxxx
> It is a very common practice to precede class member variables with m_.
>
> for example:
> class Foo
> {
> private Bar m_bar;
> }
>
> the problem is, that when I generate a setter/getter for m_bar, the m_
> prefix gets into the method names.
>
>
> class Foo
> {
> private Bar m_bar;
>
> public Bar getM_bar()
> {
> return m_bar;
> }
>
> /...
> }
>
> This is most annoying.
> has anyone considered make the setter/getter generation smarter, and have
it
> ignore common prefixes (like m_, or _)
>
>
>
>