Re: [Vala] "this" in objects



On Mi, 2011-08-03 at 20:39 +0200, Pavol Klačanský wrote:
Hi,

why somebody uses this. prefix and somebody doesn't, I have tried and it 
worked with or without it

It's a matter of taste and or coding guidelines or explicitly avoid
shadowing of object members by local variables.

"this" can be used as an equivalent to the hungarian notation of m_foo
for members. 

You're completely free to use the style that suits you for your project.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]